handle poor old rhel6

This commit is contained in:
Kevin Fenzi 2017-05-14 21:51:47 +00:00
parent f400f56c6b
commit 714506a905
2 changed files with 44 additions and 6 deletions

View file

@ -7,7 +7,7 @@
- openvpn
tags:
- packages
when: ansible_distribution_major_version|int < 22
when: ansible_distribution_major_version|int < 7
- name: Install needed package (dnf)
dnf: pkg={{ item }} state=present
@ -15,9 +15,22 @@
- openvpn
tags:
- packages
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
when: ansible_distribution_major_version|int > 7 and ansible_cmdline.ostree is not defined
- name: Install certificate and key
- name: Install certificate and key (rhel6)
copy: src={{ private }}/files/vpn/openvpn/keys/ca.crt
dest=/etc/openvpn/ca.crt
owner=root group=root mode=0600
tags:
- install
- openvpn
#notify:
#- restart openvpn (Fedora)
#- restart openvpn (RHEL7)
#- restart openvpn (RHEL6)
when: ansible_distribution_major_version|int < 7
- name: Install certificate and key (rhel7 or fedora)
copy: src={{ private }}/files/vpn/openvpn/keys/ca.crt
dest=/etc/openvpn/client/ca.crt
owner=root group=root mode=0600
@ -28,6 +41,7 @@
#- restart openvpn (Fedora)
#- restart openvpn (RHEL7)
#- restart openvpn (RHEL6)
when: ansible_distribution_major_version|int > 7 and ansible_cmdline.ostree is not defined
- name: install fix-routes.sh script
copy: src=fix-routes.sh