feat: add option yum_packages_enablerepo
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2021-05-25 14:44:21 +02:00
parent 5629d9e715
commit 67ee7030c6
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,10 @@ yum_deltarpm_value: 0
yum_deltarpm_percentage: 75 yum_deltarpm_percentage: 75
yum_upgrade_enabled: False yum_upgrade_enabled: False
yum_packages_enablerepo: []
yum_packages_install: [] yum_packages_install: []
yum_packages_install_extra: [] yum_packages_install_extra: []
yum_packages_uninstall: [] yum_packages_uninstall: []

View File

@ -3,12 +3,14 @@
- name: Remove common packages - name: Remove common packages
package: package:
name: "{{ item }}" name: "{{ item }}"
enablerepo: "{{ yum_packages_enablerepo }}"
state: absent state: absent
loop: "{{ yum_packages_uninstall }}" loop: "{{ yum_packages_uninstall }}"
- name: Install common packages - name: Install common packages
package: package:
name: "{{ item }}" name: "{{ item }}"
enablerepo: "{{ yum_packages_enablerepo }}"
state: present state: present
loop: "{{ yum_packages_install + yum_packages_install_extra }}" loop: "{{ yum_packages_install + yum_packages_install_extra }}"
become: True become: True