Skip to content

Commit 0425ab4

Browse files
committed
removed lustre cleanup that was removing dependent ofed packages
1 parent 211d230 commit 0425ab4

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

ansible/roles/lustre/tasks/install.yml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -42,29 +42,8 @@
4242
name: "{{ _lustre_find_rpms.files | map(attribute='path')}}"
4343
disable_gpg_check: yes
4444

45-
- block:
46-
- name: Remove lustre build prerequisites
47-
# NB Only remove ones this role installed which weren't upgrades
48-
ansible.builtin.dnf:
49-
name: "{{ _new_pkgs }}"
50-
state: absent
51-
vars:
52-
_installed_pkgs: |
53-
{{
54-
_lustre_dnf_build_packages.results |
55-
select('match', 'Installed:') |
56-
map('regex_replace', '^Installed: (.+?)-[0-9].*$', '\1')
57-
}}
58-
_removed_pkgs: |
59-
{{
60-
_lustre_dnf_build_packages.results |
61-
select('match', 'Removed:') |
62-
map('regex_replace', '^Removed: (.+?)-[0-9].*$', '\1')
63-
}}
64-
_new_pkgs: "{{ _installed_pkgs | difference(_removed_pkgs) }}"
65-
66-
- name: Delete lustre build dir
67-
file:
45+
- name: Delete lustre build dir
46+
file:
6847
path: "{{ lustre_build_dir }}"
6948
state: absent
7049
when: lustre_build_cleanup | bool

0 commit comments

Comments
 (0)