Skip to content

Commit 58582f9

Browse files
authored
Fix home directory for rocky during image cleanup (#382)
* fix home directory for rocky during image cleanup * bump CI image
1 parent 67e1972 commit 58582f9

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

ansible/cleanup.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,14 @@
2323
path: /etc/NetworkManager/conf.d/99-cloud-init.conf
2424
state: absent
2525

26+
- name: Get remote environment for ansible_user
27+
setup:
28+
gather_subset: env
29+
become: no
30+
2631
- name: Delete any injected ssh config for ansible_user
2732
file:
28-
path: "/home/{{ ansible_user }}/.ssh/"
33+
path: "{{ ansible_env.HOME }}/.ssh/"
2934
state: absent
3035

3136
- name: Run cloud-init cleanup

environments/.stackhpc/terraform/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ variable "cluster_image" {
2828
description = "single image for all cluster nodes, keyed by os_version - a convenience for CI"
2929
type = map(string)
3030
default = {
31-
# https://github.com/stackhpc/ansible-slurm-appliance/pull/353
32-
RL8: "openhpc-RL8-240313-1028-15f9ab38"
33-
RL9: "openhpc-RL9-240313-1057-15f9ab38"
31+
# https://github.com/stackhpc/ansible-slurm-appliance/pull/382
32+
RL8: "openhpc-RL8-240327-1050-4812f852"
33+
RL9: "openhpc-RL9-240327-1026-4812f852"
3434
}
3535
}
3636

0 commit comments

Comments
 (0)