Remove hard-coded host group value

This patch removes the hardcoded haproxy_all value and replaces
it with ansible_play_hosts instead.

Change-Id: I8a8a71f49d01748c4674ea8402c8279edbd71559
This commit is contained in:
Mohammed Naser 2017-12-22 13:48:00 -05:00
parent 57991a111e
commit 13450f75ab
1 changed files with 3 additions and 3 deletions

View File

@ -14,10 +14,10 @@
# limitations under the License.
- include: haproxy_ssl_key_create.yml
when: inventory_hostname == groups['haproxy_all'][0]
when: inventory_hostname == ansible_play_hosts[0]
- include: haproxy_ssl_key_store.yml
when: inventory_hostname == groups['haproxy_all'][0]
when: inventory_hostname == ansible_play_hosts[0]
- include: haproxy_ssl_key_distribute.yml
when: inventory_hostname != groups['haproxy_all'][0]
when: inventory_hostname != ansible_play_hosts[0]