add concourse public key to swarm manager authorized hosts

This commit is contained in:
Pim Kunis 2023-07-22 12:06:06 +02:00
parent 8a46e908ed
commit 1a527394b3
2 changed files with 5 additions and 6 deletions

View file

@ -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

View file

@ -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 }}"