xoxys.yum/tasks/packages.yml
Robert Kaussow ac5bd6a65b
All checks were successful
continuous-integration/drone/push Build is passing
fix loop syntax
2019-11-04 22:05:44 +01:00

16 lines
410 B
YAML

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