another corner case since f24 has systemd and el6 does not
This commit is contained in:
parent
5055c83e85
commit
881735b5eb
1 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue