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
|
@ -1,5 +1,6 @@
|
||||||
data_directory_base: /mnt/data
|
data_directory_base: /mnt/data
|
||||||
git_ssh_port: 56287
|
git_ssh_port: 56287
|
||||||
|
concourse_public_key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBSVLcr617iJt+hqLFSsOQy1JeueLIAj1eRfuI+KeZAu pim@x260"
|
||||||
|
|
||||||
nfs_shares:
|
nfs_shares:
|
||||||
- name: nextcloud_data
|
- name: nextcloud_data
|
||||||
|
|
|
@ -49,9 +49,7 @@
|
||||||
|
|
||||||
- hosts: manager
|
- hosts: manager
|
||||||
tasks:
|
tasks:
|
||||||
- name: Add labels to Docker Swarm
|
- name: Add concourse to authorized keys
|
||||||
docker_node:
|
authorized_key:
|
||||||
hostname: "{{ item.hostname }}"
|
user: root
|
||||||
labels: "{{ item.labels }}"
|
key: "{{ concourse_public_key }}"
|
||||||
labels_state: replace
|
|
||||||
loop: "{{ docker_node_labels }}"
|
|
||||||
|
|
Reference in a new issue