nrec-ansible/project/roles/common/tasks/packages.yml
Torjus Håkestad 5b89cfced5
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Add common role
2022-01-13 00:24:36 +01:00

17 lines
428 B
YAML

---
- name: Ensure common packages are installed
ansible.builtin.package:
name:
- zsh
- htop
- xfsprogs
- iotop
- name: Ensure debian-specific packages are installed
import_tasks: packages_debian.yml
when: ansible_facts['os-family']|lower == 'debian'
- name: Ensure rhel-specific packages are installed
import_tasks: packages_redhat.yml
when: ansible_facts['os-family']|lower == 'redhat'