18 lines
430 B
YAML
18 lines
430 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
|