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
git_ssh_port: 56287
concourse_public_key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBSVLcr617iJt+hqLFSsOQy1JeueLIAj1eRfuI+KeZAu pim@x260"
nfs_shares:
- name: nextcloud_data

View file

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