2022-02-12 13:36:51 +00:00
|
|
|
---
|
2024-02-18 19:30:22 +00:00
|
|
|
- name: Uninstall prerequisite packages
|
|
|
|
ansible.builtin.package:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: absent
|
|
|
|
loop: "{{ packages_uninstall_pre + packages_uninstall_pre_extra }}"
|
2024-01-24 21:13:57 +00:00
|
|
|
|
2024-09-25 19:52:07 +00:00
|
|
|
- name: Include OS specific tasks
|
2024-09-25 20:21:26 +00:00
|
|
|
ansible.builtin.include_tasks:
|
|
|
|
file: "{{ item }}"
|
|
|
|
with_first_found:
|
|
|
|
- paths:
|
|
|
|
- "tasks"
|
2024-09-25 19:52:07 +00:00
|
|
|
files:
|
|
|
|
- "{{ ansible_os_family | lower }}.yml"
|
2024-09-25 20:06:23 +00:00
|
|
|
skip: True
|
2024-01-24 21:13:57 +00:00
|
|
|
|
2024-02-18 19:30:22 +00:00
|
|
|
- name: Uninstall packages
|
|
|
|
ansible.builtin.package:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: absent
|
|
|
|
loop: "{{ packages_uninstall + packages_uninstall_extra }}"
|
2024-01-24 21:13:57 +00:00
|
|
|
|
2024-09-25 19:52:07 +00:00
|
|
|
- name: Install packages
|
2024-02-18 19:30:22 +00:00
|
|
|
ansible.builtin.package:
|
|
|
|
name: "{{ item }}"
|
|
|
|
enablerepo: "{{ packages_enablerepo }}"
|
|
|
|
state: present
|
|
|
|
loop: "{{ packages_install + packages_install_extra }}"
|