Packer.Images/ansible/roles/os/tasks/packages.yml

16 lines
327 B
YAML
Raw Normal View History

2021-06-08 19:27:08 +00:00
- name: Install additional packages
ansible.builtin.apt:
name: "{{ item }}"
state: latest
update_cache: yes
2021-06-08 19:27:59 +00:00
loop: "{{ packages }}"
2021-06-08 19:56:06 +00:00
- name: Upgrade all packages
ansible.builtin.apt:
name: "*"
state: latest
update_cache: yes
- name: Cleanup
ansible.builtin.apt:
autoremove: yes
2021-06-11 12:44:43 +00:00
purge: yes