forked from ISTI-ansible-roles/ansible-roles
Fix the vpn client variables.
This commit is contained in:
parent
5db2655652
commit
faab5aede0
|
@ -103,13 +103,15 @@
|
||||||
- name: Get the dh file from the master host
|
- name: Get the dh file from the master host
|
||||||
synchronize:
|
synchronize:
|
||||||
src: '{{ openvpn_conf_dir }}/dh2048.pem'
|
src: '{{ openvpn_conf_dir }}/dh2048.pem'
|
||||||
dest: 'rsync://root@{{ ansible_fqdn }}/{{ openvpn_conf_dir }}/dh2048.pem'
|
#dest: 'rsync://root@{{ ansible_fqdn }}/{{ openvpn_conf_dir }}/dh2048.pem'
|
||||||
|
dest: '/{{ openvpn_conf_dir }}/dh2048.pem'
|
||||||
delegate_to: '{{ openvpn_master_host }}'
|
delegate_to: '{{ openvpn_master_host }}'
|
||||||
|
|
||||||
- name: Get the ta key from the master host
|
- name: Get the ta key from the master host
|
||||||
synchronize:
|
synchronize:
|
||||||
src: '{{ openvpn_conf_dir }}/ta.key'
|
src: '{{ openvpn_conf_dir }}/ta.key'
|
||||||
dest: 'rsync://root@{{ ansible_fqdn }}/{{ openvpn_conf_dir }}/ta.key'
|
#dest: 'rsync://root@{{ ansible_fqdn }}/{{ openvpn_conf_dir }}/ta.key'
|
||||||
|
dest: '/{{ openvpn_conf_dir }}/ta.key'
|
||||||
delegate_to: '{{ openvpn_master_host }}'
|
delegate_to: '{{ openvpn_master_host }}'
|
||||||
|
|
||||||
when:
|
when:
|
||||||
|
@ -117,6 +119,24 @@
|
||||||
- not openvpn_is_master_host
|
- not openvpn_is_master_host
|
||||||
tags: [ 'openvpn', 'openvpn_conf', 'openvpn_shared_secrets' ]
|
tags: [ 'openvpn', 'openvpn_conf', 'openvpn_shared_secrets' ]
|
||||||
|
|
||||||
|
- block:
|
||||||
|
- name: Get the dh file from the master host
|
||||||
|
synchronize:
|
||||||
|
src: '{{ openvpn_conf_dir }}/dh2048.pem'
|
||||||
|
#dest: 'rsync://root@{{ ansible_fqdn }}/{{ openvpn_conf_dir }}/dh2048.pem'
|
||||||
|
dest: '/{{ openvpn_conf_dir }}/dh2048.pem'
|
||||||
|
delegate_to: '{{ openvpn_master_host }}'
|
||||||
|
|
||||||
|
- name: Get the ta key from the master host
|
||||||
|
synchronize:
|
||||||
|
src: '{{ openvpn_conf_dir }}/ta.key'
|
||||||
|
#dest: 'rsync://root@{{ ansible_fqdn }}/{{ openvpn_conf_dir }}/ta.key'
|
||||||
|
dest: '/{{ openvpn_conf_dir }}/ta.key'
|
||||||
|
delegate_to: '{{ openvpn_master_host }}'
|
||||||
|
|
||||||
|
when: openvpn_mode != 'server'
|
||||||
|
tags: [ 'openvpn', 'openvpn_conf', 'openvpn_shared_secrets' ]
|
||||||
|
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Enable kernel forwarding
|
- name: Enable kernel forwarding
|
||||||
|
|
Loading…
Reference in New Issue