Skip to content

Commit 4ec5332

Browse files
committed
add persist_hostkeys role
1 parent 05c29ce commit 4ec5332

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

ansible/extras.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,13 @@
2626
tasks:
2727
- import_role:
2828
name: cuda
29+
30+
- name: Persist hostkeys across rebuilds
31+
# Must be after filesystems.yml (for storage)
32+
# and before portal.yml (where OOD login node hostkeys are scanned)
33+
hosts: persist_hostkeys:!builder
34+
become: yes
35+
gather_facts: no
36+
tasks:
37+
- import_role:
38+
name: persist_hostkeys

environments/common/inventory/groups

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,6 @@ freeipa_client
123123

124124
[proxy]
125125
# Hosts to configure http/s proxies - see ansible/roles/proxy/README.md
126+
127+
[persist_hostkeys]
128+
# Hosts to persist hostkeys for across reimaging. NB: Requires appliances_state_dir on hosts.

environments/common/layouts/everything

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,6 @@ openhpc
6969

7070
[manila]
7171
# Hosts to configure for manila fileshares
72+
73+
[persist_hostkeys]
74+
# Hosts to persist hostkeys for across reimaging. NB: Requires appliances_state_dir on hosts.

0 commit comments

Comments
 (0)