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:
Mohammed Naser 2018-04-14 11:30:30 -04:00 committed by German Eichberger
parent 74bfb1c1f2
commit 1ccfd44a58
1 changed files with 1 additions and 1 deletions

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