another corner case since f24 has systemd and el6 does not

This commit is contained in:
Kevin Fenzi 2017-05-14 23:45:27 +00:00
parent 5055c83e85
commit 881735b5eb

View file

@ -65,9 +65,16 @@
# - restart openvpn (RHEL6)
when: ( ansible_distribution_major_version|int == 6 or ansible_distribution_major_version|int == 24) and ansible_cmdline.ostree is not defined
- name: enable openvpn service for rhel 6 or fedora 24
- name: enable openvpn service for rhel 6
service: name=openvpn state=started enabled=true
when: ansible_distribution_major_version|int == 6 or ansible_distribution_major_version|int == 24
when: ansible_distribution_major_version|int == 6
tags:
- service
- openvpn
- name: enable openvpn service for fedora 24
service: name=openvpn@openvpn state=started enabled=true
when: ansible_distribution_major_version|int == 24
tags:
- service
- openvpn