xoxys.yum/tasks/packages.yml

16 lines
410 B
YAML
Raw Normal View History

2018-11-29 21:02:25 +00:00
---
- block:
- name: Remove common packages
package:
name: "{{ item }}"
state: absent
2019-11-04 21:05:44 +00:00
loop: "{{ yum_packages_uninstall | default([]) }}"
2018-11-29 21:02:25 +00:00
- name: Install common packages
package:
name: "{{ item }}"
state: present
2019-11-04 21:05:44 +00:00
loop: "{{ yum_packages_install | default([]) }} + {{ yum_packages_extra_install | default([]) }}"
2018-11-29 21:02:25 +00:00
become: True
become_user: root