xoxys.packages/tasks/main.yml
Robert Kaussow c5f25c249c
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
fix: fix first_found lookup
2024-09-25 22:06:23 +02:00

31 lines
795 B
YAML

---
- name: Uninstall prerequisite packages
ansible.builtin.package:
name: "{{ item }}"
state: absent
loop: "{{ packages_uninstall_pre + packages_uninstall_pre_extra }}"
- name: Include OS specific tasks
ansible.builtin.include_tasks: "{{ lookup('first_found', params) }}"
vars:
params:
files:
- "{{ ansible_os_family | lower }}.yml"
paths:
- "tasks"
errors: "ignore"
skip: True
- name: Uninstall packages
ansible.builtin.package:
name: "{{ item }}"
state: absent
loop: "{{ packages_uninstall + packages_uninstall_extra }}"
- name: Install packages
ansible.builtin.package:
name: "{{ item }}"
enablerepo: "{{ packages_enablerepo }}"
state: present
loop: "{{ packages_install + packages_install_extra }}"