---

- name: openvpn restart
  service: name=openvpn state=restarted

- name: openvpn pack clients
  command: tar cvzf {{openvpn_keydir}}/{{item.item}}.tar.gz -C {{openvpn_keydir}} {{item.item}}.crt {{item.item}}.key {{item.item}}.ovpn ca.crt
  when: item.changed
  with_items: openvpn_clients_changed.results

---

- name: openvpn restart
  service: name=openvpn state=restarted

- name: openvpn pack clients
  command: tar cvzf {{openvpn_keydir}}/{{item.item}}.tar.gz -C {{openvpn_keydir}} {{item.item}}.crt {{item.item}}.key {{item.item}}.ovpn ca.crt
  when: item.changed
  with_items: "{{openvpn_clients_changed.results}}"

Update for deprecation-related variable quoting
Update for deprecation-related variable quoting

See https://docs.ansible.com/ansible/porting_guide_2.0.html#deprecated
for more details
