34 lines
792 B
YAML
34 lines
792 B
YAML
- name: install guest additions
|
|
hosts: default
|
|
vars:
|
|
ansible_remote_tmp: /tmp
|
|
no_touchy:
|
|
- NixOS
|
|
pre_tasks:
|
|
- name: Pause for a moment in case we need cloud-init to finish
|
|
ansible.builtin.pause:
|
|
seconds: 20
|
|
|
|
- name: Help with debugging
|
|
ansible.builtin.debug:
|
|
msg: "Detected distro: {{ ansible_facts['distribution'] }}"
|
|
roles:
|
|
- role: devroles.system.epel
|
|
|
|
- role: virtualbox
|
|
when:
|
|
- packer_builder_type == 'virtualbox-iso'
|
|
|
|
- role: vmware
|
|
when:
|
|
- packer_builder_type == 'vmware-iso'
|
|
- ansible_facts.distribution not in no_touchy
|
|
|
|
- role: qemu
|
|
when:
|
|
- packer_builder_type == 'qemu'
|
|
|
|
- role: cleanup
|
|
when:
|
|
- ansible_facts.distribution not in no_touchy
|