File tree Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Original file line number Diff line number Diff line change 1
- - name : NREL lab fixes - Workaround no internal DNS
2
- hosts : all
3
- become : true
4
- gather_facts : false
5
- tags : etc_hosts
6
- tasks :
7
- - name : Create /etc/hosts for all nodes as DNS doesn't work
8
- # the interface used as ansible_host is defined by terraform's `access_network` parameter, so this is deterministic for multi-rail hosts
9
- blockinfile :
10
- path : /etc/hosts
11
- create : yes
12
- state : present
13
- block : |
14
- {% for hostname in groups['all'] %}
15
- {{ hostvars[hostname]['ansible_host'] }} {{ hostname }}
16
- {% endfor %}
17
-
18
1
- name : NREL lab fixes - For compute nodes
19
2
hosts : compute
20
3
become : true
Original file line number Diff line number Diff line change 1
1
# Don't have os_manila for lab so fake it using NFS
2
2
[nfs:children]
3
3
openhpc
4
+
5
+ # Don't have working internal DNS
6
+ [etc_hosts:children]
7
+ cluster
You can’t perform that action at this time.
0 commit comments