Use the variable, not the string

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2018-01-02 02:14:00 +00:00
parent 543acabdb1
commit 2948514084

View file

@ -102,7 +102,7 @@
- name: Create directories for post-vpn service configs
file: path="/etc/systemd/system/{{item}}.service.d" state=directory
with_items: postvpnservices
with_items: "{{postvpnservices}}"
when: is_fedora is defined or ansible_distribution_major_version|int == 7
tags:
- service
@ -110,7 +110,7 @@
- name: Deploy postvpn.conf for post-vpn services
copy: src=postvpn.conf dest="/etc/systemd/system/{{item}}.service.d/postvpn.conf"
with_items: postvpnservices
with_items: "{{postvpnservices}}"
when: is_fedora is defined or ansible_distribution_major_version|int == 7
tags:
- service