Files
vms/ansible/playbook.yml
T
Greg HellingsandGitHub 0a3832d2c4 Add CentOS (#12)
* Add CentOS 7

* Fix rawhide boot

* Test locale versions
2022-06-22 10:00:04 -05:00

36 lines
968 B
YAML

- name: install guest additions
hosts: default
pre_tasks:
- name: Update all the things
become: true
ansible.builtin.package: # noqa package-latest
name: "*"
state: latest
when: ansible_facts.pkg_mgr not in ['atomic_container']
register: _update_all
retries: 3
until: _update_all is success
- name: Update atomic things
become: true
ansible.builtin.command: rpm-ostree upgrade
when: ansible_facts.pkg_mgr in ['atomic_container']
changed_when: false
register: _update_atomic
retries: 3
until: _update_atomic is success
- name: Restart the machine
become: true
ansible.builtin.reboot:
roles:
- role: devroles.system.epel
- role: virtualbox
when: packer_builder_type == 'virtualbox-iso'
- role: vmware
when: packer_builder_type == 'vmware-iso'
- role: init
- role: locale
- role: vagrant
- role: cleanup