diff --git a/ansible/roles/designate/tasks/deploy.yml b/ansible/roles/designate/tasks/deploy.yml index 373af0ea4c..bf212d9962 100644 --- a/ansible/roles/designate/tasks/deploy.yml +++ b/ansible/roles/designate/tasks/deploy.yml @@ -21,4 +21,4 @@ meta: flush_handlers - include_tasks: update_pools.yml - when: inventory_hostname in groups['designate-worker'][0] + when: inventory_hostname == groups['designate-worker'][0] diff --git a/ansible/roles/designate/tasks/update_pools.yml b/ansible/roles/designate/tasks/update_pools.yml index dc9692aa12..c0602d7f93 100644 --- a/ansible/roles/designate/tasks/update_pools.yml +++ b/ansible/roles/designate/tasks/update_pools.yml @@ -1,4 +1,4 @@ --- - name: Update DNS pools command: docker exec -t designate_worker designate-manage pool update --file /etc/designate/pools.yaml - when: inventory_hostname in groups['designate-worker'][0] + when: inventory_hostname == groups['designate-worker'][0]