Files
ansible-general/roles/packages/tasks/main.yaml
2025-03-28 04:13:59 +02:00

22 lines
683 B
YAML

---
- name: Deprecation notification
ansible.builtin.debug:
msg: |
The role uumas.general.packages is deprecated and will be removed soon!
Just use ansible.builtin.apt or .dnf directly, this does nothing special.
changed_when: true
- name: Include tasks for apt as package manager
ansible.builtin.include_tasks: apt.yaml
when: ansible_pkg_mgr == 'apt'
- name: Include tasks for other package manager
ansible.builtin.include_tasks: other.yaml
when: ansible_pkg_mgr != 'apt'
- name: Ensure packages defined in delete_packages not installed
ansible.builtin.package:
name: "{{ delete_packages }}"
state: absent
when: delete_packages is defined