diff --git a/tasks/swarm_node.yml b/tasks/swarm_node.yml index 838baa9..e115e78 100644 --- a/tasks/swarm_node.yml +++ b/tasks/swarm_node.yml @@ -45,7 +45,7 @@ - name: Manage labels block: - name: Manage the swarm nodes labels - shell: docker node update --label-{{ item.action | default('add') }} {{ item.key }}={{ item.value }} {{ ansible_hostname }} + shell: docker node update --label-{{ item.action | default('add') }} {{ item.key }}={{ item.value }} {{ docker_swarm_worker_hostname }} #docker_node: # hostname: '{{ ansible_hostname }}' # labels: