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
|
||||
synchronize:
|
||||
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 }}'
|
||||
|
||||
- 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: 'rsync://root@{{ ansible_fqdn }}/{{ openvpn_conf_dir }}/ta.key'
|
||||
dest: '/{{ openvpn_conf_dir }}/ta.key'
|
||||
delegate_to: '{{ openvpn_master_host }}'
|
||||
|
||||
when:
|
||||
|
@ -117,6 +119,24 @@
|
|||
- not openvpn_is_master_host
|
||||
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:
|
||||
- name: Enable kernel forwarding
|
||||
|
|
Loading…
Reference in New Issue