ansible_hostname != inventory_hostname

This commit is contained in:
Patrick Uiterwijk 2014-12-18 10:58:00 +00:00
parent 6c803e7415
commit e82af3ee59

View file

@ -41,7 +41,7 @@
- collectd/base
- collectd/postgres # This requires a 'databases' var to be set in host_vars
- sudo
- { role: openvpn/client, when: ansible_hostname == "db-fas01.phx2.fedoraproject.org" }
- { role: openvpn/client, when: inventory_hostname == "db-fas01.phx2.fedoraproject.org" }
tasks:
- include: "{{ tasks }}/yumrepos.yml"