add concourse public key to swarm manager authorized hosts
This commit is contained in:
parent
8a46e908ed
commit
1a527394b3
2 changed files with 5 additions and 6 deletions
|
@ -49,9 +49,7 @@
|
|||
|
||||
- hosts: manager
|
||||
tasks:
|
||||
- name: Add labels to Docker Swarm
|
||||
docker_node:
|
||||
hostname: "{{ item.hostname }}"
|
||||
labels: "{{ item.labels }}"
|
||||
labels_state: replace
|
||||
loop: "{{ docker_node_labels }}"
|
||||
- name: Add concourse to authorized keys
|
||||
authorized_key:
|
||||
user: root
|
||||
key: "{{ concourse_public_key }}"
|
||||
|
|
Reference in a new issue