Don't write out nodepool primary file on non-primary node
Change-Id: Ie866ba83c62a6fd45de6a783eecda217e90fd49e
This commit is contained in:
parent
e4412c8703
commit
19f9a4e135
@ -18,6 +18,7 @@
|
|||||||
copy:
|
copy:
|
||||||
dest: /etc/nodepool/primary_node_private
|
dest: /etc/nodepool/primary_node_private
|
||||||
content: "{{ hostvars['primary']['nodepool']['private_ipv4'] }}"
|
content: "{{ hostvars['primary']['nodepool']['private_ipv4'] }}"
|
||||||
|
when: hostvars['primary'] is defined
|
||||||
- name: Copy ssh keys to nodepool directory
|
- name: Copy ssh keys to nodepool directory
|
||||||
command: "cp .ssh/{{ item }} /etc/nodepool/{{ item }}"
|
command: "cp .ssh/{{ item }} /etc/nodepool/{{ item }}"
|
||||||
with_items:
|
with_items:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user