nomad/ansible/roles/apt/tasks/main.yml
2022-11-30 22:02:19 +00:00

13 lines
369 B
YAML

---
- name: apt update packages to their latest version and autoclean
become: true
apt:
upgrade: yes
update_cache: yes
when: ansible_os_family == "Debian" and apt_update_packages
- name: install common tools
ansible.builtin.apt:
name: "{{ item }}"
with_items: "{{ apt_packages }}"
when: ansible_os_family == "Debian" and apt_install_packages