xoxys.yum/tasks/packages.yml
Robert Kaussow 67ee7030c6
All checks were successful
continuous-integration/drone/push Build is passing
feat: add option yum_packages_enablerepo
2021-05-25 14:44:21 +02:00

18 lines
466 B
YAML

---
- block:
- name: Remove common packages
package:
name: "{{ item }}"
enablerepo: "{{ yum_packages_enablerepo }}"
state: absent
loop: "{{ yum_packages_uninstall }}"
- name: Install common packages
package:
name: "{{ item }}"
enablerepo: "{{ yum_packages_enablerepo }}"
state: present
loop: "{{ yum_packages_install + yum_packages_install_extra }}"
become: True
become_user: root