feat: add option yum_packages_enablerepo
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
5629d9e715
commit
67ee7030c6
@ -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: []
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user