xoxys.yum/tasks/packages.yml

18 lines
442 B
YAML
Raw Normal View History

2018-11-29 21:02:25 +00:00
---
- 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