From a8d340362bedbe025bf619bb005047d51af0ad0d Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 28 Jun 2024 17:13:18 -0400 Subject: [PATCH] update indentation --- automation/playbooks/initialize_worker.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/automation/playbooks/initialize_worker.yml b/automation/playbooks/initialize_worker.yml index d97c26b..3ec03c6 100644 --- a/automation/playbooks/initialize_worker.yml +++ b/automation/playbooks/initialize_worker.yml @@ -30,11 +30,9 @@ shell: timedatectl set-timezone America/Toronto - name: 'Get Swarm join token from manager' - tasks: - - name: Get Swarm join token from manager - shell: docker swarm join-token worker - register: join_token - delegate_to: "{{ groups['managers'] | random }}" # Run on the first manager node + shell: 'docker swarm join-token worker' + register: join_token + delegate_to: "{{ groups['managers'] | random }}" # Run on the first manager node - name: 'Join the Swarm as a worker' community.docker.docker_swarm: