diff --git a/tasks/swarm_node.yml b/tasks/swarm_node.yml index 42b2a03..482c47c 100644 --- a/tasks/swarm_node.yml +++ b/tasks/swarm_node.yml @@ -48,7 +48,7 @@ docker_node: hostname: '{{ ansible_hostname }}' labels: - {{ item.key }}: '{{ item.value }}' + "{{ item.key }}": '{{ item.value }}' labels_state: '{{ docker_label_state_mode }}' with_items: '{{ docker_node_labels }}'