klips/ansible/roles/core/tasks/install-apps.yml

19 lines
397 B
YAML
Raw Normal View History

2019-08-29 09:35:19 +00:00
---
- name: Install packages
2020-11-25 11:38:20 +00:00
package: name="{{ item }}" state=present
2019-08-29 09:35:19 +00:00
with_items: "{{ packages }}"
2020-11-25 11:38:20 +00:00
- name: Ensure package lists are up-to-date
apt:
update_cache: yes
- name: Ensure packages are up-to-date
apt:
upgrade: dist
- name: Remove unused packages from the cache
apt:
autoclean: yes
- name: Remove dependencies that are no longer required
apt:
autoremove: yes