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
(cherry picked from commit d5afc9ff8c
)
This commit is contained in:
parent
74bfb1c1f2
commit
1ccfd44a58
|
@ -49,7 +49,7 @@
|
|||
- octavia-install
|
||||
|
||||
- include: octavia_service_add.yml
|
||||
when: inventory_hostname == groups['octavia_all'][0]
|
||||
run_once: true
|
||||
tags:
|
||||
- octavia-install
|
||||
|
||||
|
|
Loading…
Reference in New Issue