Switch to using run_once instead of matching the first node only

Ansible allows us to run tasks once so we should use that, also
the service add is not something that has to be necessarily be
done on the first node specifically.

Change-Id: I6826fd89dfa09b8f8567a85e61c2210e8d3f76e1
This commit is contained in:
Mohammed Naser 2018-04-14 11:30:30 -04:00
parent 1092950508
commit d5afc9ff8c

View File

@ -49,7 +49,7 @@
- octavia-install
- include: octavia_service_add.yml
when: inventory_hostname == groups['octavia_all'][0]
run_once: true
tags:
- octavia-install