xoxys.yum/tasks/packages.yml

18 lines
442 B
YAML

---
- block:
- name: Remove common packages
package:
name: "{{ item }}"
state: absent
with_items:
- "{{ yum_packages_uninstall | default([]) }}"
- name: Install common packages
package:
name: "{{ item }}"
state: present
with_items:
- "{{ yum_packages_install | default([]) }} + {{ yum_packages_extra_install | default([]) }}"
become: True
become_user: root