Ansible role for XOA installation or update using sources

This commit is contained in:
David R_
2024-01-22 10:23:36 +01:00
parent bfc606a207
commit 53a0132680
7 changed files with 352 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
- name: reload_systemd
shell: systemctl daemon-reload
args:
warn: no
- name: cleaning_packages_metadata
shell: yum clean all && rm -rf /var/cache/yum
when: ansible_distribution == 'Red Hat Enterprise Linux' or ansible_distribution == 'XCP-ng'
args:
warn: no
- name: cleaning_packages_metadata
shell: zypper clean && rm -rf /var/cache/zypp
when: ansible_distribution == 'openSUSE Leap'
args:
warn: no
- name: cleaning_packages_metadata
shell: apt clean
when: ansible_distribution == 'Debian'
args:
warn: no