Packer.Images/ansible/roles/os/tasks/packages.yml
Danny Bessems 01e168a7f9
Some checks failed
continuous-integration/drone/push Build is failing
Refactor package installation
2022-08-03 14:39:36 +02:00

25 lines
496 B
YAML

- name: Install additional packages
ansible.builtin.apt:
pkg: "{{ packages.apt }}"
state: latest
update_cache: yes
install_recommends: no
- name: Upgrade all packages
ansible.builtin.apt:
name: '*'
state: latest
update_cache: yes
- name: Install additional python packages
ansible.builtin.pip:
name: "{{ item }}"
executable: pip3
state: latest
loop: "{{ packages.pip }}"
- name: Cleanup
ansible.builtin.apt:
autoremove: yes
purge: yes