Merge "Don't write out nodepool primary file on non-primary node"
This commit is contained in:
commit
d9a92bc8be
@ -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…
Reference in New Issue
Block a user