fp/ansible/roles/swarm/tasks/worker.yml
CJ_Clippy 8ef71691e0
Some checks are pending
fp/our CI/CD / build (push) Waiting to run
ci / test (push) Waiting to run
use container port 3000
2025-10-07 04:12:07 -08:00

13 lines
357 B
YAML

---
- name: Debug
ansible.builtin.debug:
var: groups['swarm']
- name: Join worker nodes
community.docker.docker_swarm:
state: join
advertise_addr: "{{ internal_ip }}"
join_token: "{{ hostvars[groups['swarm'] | first]['swarm_worker_join_token'] }}"
remote_addrs:
- "{{ hostvars[groups['swarm'] | first]['internal_ip'] }}:2377"