2025-07-16 17:14:16 -06:00

7 lines
196 B
YAML

---
- name: Set node labels on all Swarm nodes
community.docker.docker_node:
hostname: "{{ item.name }}"
labels: "{{ item.labels }}"
labels_state: replace
loop: "{{ swarm_nodes }}"