fix: add metadata cleanup handler
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
2e81c2067e
commit
b7357283e3
@ -10,3 +10,9 @@
|
||||
- skip_ansible_later
|
||||
become: True
|
||||
become_user: root
|
||||
|
||||
- name: Clean metadata cache
|
||||
command: dnf clean metadata
|
||||
listen: __packages_clean_metadata
|
||||
become: True
|
||||
become_user: root
|
||||
|
@ -7,6 +7,7 @@
|
||||
loop: "{{ packages_repofiles_remove }}"
|
||||
loop_control:
|
||||
label: "/etc/yum.repos.d/{{ item }}"
|
||||
notify: __packages_clean_metadata
|
||||
|
||||
- name: Add common repositories
|
||||
yum_repository:
|
||||
@ -22,7 +23,9 @@
|
||||
loop: "{{ packages_yum_repositories + packages_yum_repositories_extra }}"
|
||||
loop_control:
|
||||
label: "{{ item.name }}"
|
||||
notify: __packages_upgrade
|
||||
notify:
|
||||
- __packages_upgrade
|
||||
- __packages_clean_metadata
|
||||
|
||||
- name: Uninstall packages
|
||||
package:
|
||||
|
Loading…
Reference in New Issue
Block a user