xoxys.yum/tasks/packages.yml

18 lines
466 B
YAML
Raw Permalink Normal View History

2018-11-29 21:02:25 +00:00
---
- block:
- name: Remove common packages
package:
name: "{{ item }}"
enablerepo: "{{ yum_packages_enablerepo }}"
2018-11-29 21:02:25 +00:00
state: absent
2020-10-17 09:31:52 +00:00
loop: "{{ yum_packages_uninstall }}"
2018-11-29 21:02:25 +00:00
- name: Install common packages
package:
name: "{{ item }}"
enablerepo: "{{ yum_packages_enablerepo }}"
2018-11-29 21:02:25 +00:00
state: present
2020-10-17 09:31:52 +00:00
loop: "{{ yum_packages_install + yum_packages_install_extra }}"
2018-11-29 21:02:25 +00:00
become: True
become_user: root