Files
vms/ansible/playbook.yml
T

30 lines
800 B
YAML
Raw Normal View History

2022-05-02 22:03:37 -05:00
- name: install guest additions
hosts: default
pre_tasks:
2022-06-08 01:39:37 -05:00
- name: Update all the things
2022-05-02 22:03:37 -05:00
become: true
2022-05-05 08:17:48 -05:00
ansible.builtin.package: # noqa package-latest
2022-05-02 22:03:37 -05:00
name: "*"
state: latest
when: ansible_facts.pkg_mgr not in ['atomic_container']
2022-06-08 01:39:37 -05:00
- name: Update atomic things
2022-05-02 22:03:37 -05:00
become: true
2022-05-05 08:17:48 -05:00
ansible.builtin.command: rpm-ostree upgrade
2022-05-02 22:03:37 -05:00
when: ansible_facts.pkg_mgr in ['atomic_container']
2022-05-05 08:17:48 -05:00
changed_when: false
2022-06-08 01:39:37 -05:00
- name: Restart the machine
become: true
ansible.builtin.reboot:
2022-05-02 22:03:37 -05:00
roles:
- role: virtualbox
when: packer_builder_type == 'virtualbox-iso'
- role: vmware
when: packer_builder_type == 'vmware-iso'
- role: init
2022-05-05 08:17:48 -05:00
- role: devroles.system.epel
2022-05-02 22:03:37 -05:00
- role: locale
- role: vagrant
- role: cleanup