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

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