File tree Expand file tree Collapse file tree 2 files changed +9
-28
lines changed
ansible/roles/lustre/tasks Expand file tree Collapse file tree 2 files changed +9
-28
lines changed Original file line number Diff line number Diff line change 8
8
- ' environments/.stackhpc/terraform/cluster_image.auto.tfvars.json'
9
9
- ' ansible/roles/doca/**'
10
10
- ' ansible/roles/cuda/**'
11
+ - ' ansible/roles/lustre/**'
11
12
- ' .github/workflows/extra.yml'
12
13
pull_request :
13
14
paths :
14
15
- ' environments/.stackhpc/terraform/cluster_image.auto.tfvars.json'
15
16
- ' ansible/roles/doca/**'
16
17
- ' ansible/roles/cuda/**'
18
+ - ' ansible/roles/lustre/**'
17
19
- ' .github/workflows/extra.yml'
18
20
19
21
jobs :
@@ -29,11 +31,11 @@ jobs:
29
31
build :
30
32
- image_name : openhpc-extra-RL8
31
33
source_image_name_key : RL8 # key into environments/.stackhpc/terraform/cluster_image.auto.tfvars.json
32
- inventory_groups : doca,cuda
34
+ inventory_groups : doca,cuda,lustre
33
35
volume_size : 30 # needed for cuda
34
36
- image_name : openhpc-extra-RL9
35
37
source_image_name_key : RL9
36
- inventory_groups : doca,cuda
38
+ inventory_groups : doca,cuda,lustre
37
39
volume_size : 30 # needed for cuda
38
40
env :
39
41
ANSIBLE_FORCE_COLOR : True
Original file line number Diff line number Diff line change 41
41
ansible.builtin.dnf :
42
42
name : " {{ _lustre_find_rpms.files | map(attribute='path')}}"
43
43
disable_gpg_check : yes
44
-
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 :
68
- path : " {{ lustre_build_dir }}"
69
- state : absent
44
+
45
+ - name : Delete lustre build dir
46
+ file :
47
+ path : " {{ lustre_build_dir }}"
48
+ state : absent
70
49
when : lustre_build_cleanup | bool
You can’t perform that action at this time.
0 commit comments