handle server dh file
This commit is contained in:
parent
f12de13a1f
commit
f381865238
1 changed files with 14 additions and 1 deletions
|
@ -30,7 +30,7 @@
|
||||||
#- restart openvpn (RHEL6)
|
#- restart openvpn (RHEL6)
|
||||||
when: ansible_distribution_major_version|int < 7
|
when: ansible_distribution_major_version|int < 7
|
||||||
|
|
||||||
- name: Install certificate and key (rhel7 or fedora)
|
- name: Install certificate and key (rhel7 or fedora) for client
|
||||||
copy: src={{ private }}/files/vpn/openvpn/keys/ca.crt
|
copy: src={{ private }}/files/vpn/openvpn/keys/ca.crt
|
||||||
dest=/etc/openvpn/client/ca.crt
|
dest=/etc/openvpn/client/ca.crt
|
||||||
owner=root group=root mode=0600
|
owner=root group=root mode=0600
|
||||||
|
@ -43,6 +43,19 @@
|
||||||
#- restart openvpn (RHEL6)
|
#- restart openvpn (RHEL6)
|
||||||
when: ansible_distribution_major_version|int > 6 and ansible_cmdline.ostree is not defined
|
when: ansible_distribution_major_version|int > 6 and ansible_cmdline.ostree is not defined
|
||||||
|
|
||||||
|
- name: Install certificate and key (rhel7 or fedora) for server
|
||||||
|
copy: src={{ private }}/files/vpn/openvpn/keys/ca.crt
|
||||||
|
dest=/etc/openvpn/server/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 > 6 and ansible_cmdline.ostree is not defined
|
||||||
|
|
||||||
- name: install fix-routes.sh script
|
- name: install fix-routes.sh script
|
||||||
copy: src=fix-routes.sh
|
copy: src=fix-routes.sh
|
||||||
dest=/etc/openvpn/fix-routes.sh
|
dest=/etc/openvpn/fix-routes.sh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue