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:
parent
57991a111e
commit
13450f75ab
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue