add option to remove whole repo files
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
1a5fc58ce3
commit
15c2048d48
@ -28,6 +28,8 @@ yum_repositories: []
|
|||||||
# enabled: True
|
# enabled: True
|
||||||
# @end
|
# @end
|
||||||
|
|
||||||
|
yum_repofiles_remove: []
|
||||||
|
|
||||||
# @var yum_deltarpm_value:description: >
|
# @var yum_deltarpm_value:description: >
|
||||||
# Configure deltarmp. To get it working you have to install `deltarpm` package first!
|
# Configure deltarmp. To get it working you have to install `deltarpm` package first!
|
||||||
# Value set to `0` means disabled. A positive value defines the number
|
# Value set to `0` means disabled. A positive value defines the number
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
- block:
|
||||||
- name: Add common yum repositories
|
- name: Add common yum repositories
|
||||||
yum_repository:
|
yum_repository:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
@ -14,5 +15,13 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}"
|
label: "{{ item.name }}"
|
||||||
notify: __yum_upgrade
|
notify: __yum_upgrade
|
||||||
|
|
||||||
|
- name: Remove repo files
|
||||||
|
file:
|
||||||
|
name: "/etc/yum.repos.d/{{ item }}"
|
||||||
|
state: absent
|
||||||
|
loop: "{{ yum_repofiles_remove }}"
|
||||||
|
loop_control:
|
||||||
|
label: "/etc/yum.repos.d{{ item }}"
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
Loading…
Reference in New Issue
Block a user