library/roles/openvpn/tasks/openvpn.yml: Comment out the tasks that copy the key files. They do not work (ansible bug?).

This commit is contained in:
Andrea Dell'Amico 2016-10-18 19:15:13 +02:00
parent ac81ef9c32
commit 4d918e0bd0
1 changed files with 11 additions and 9 deletions

View File

@ -88,17 +88,19 @@
when: openvpn_is_master_host or not openvpn_ha when: openvpn_is_master_host or not openvpn_ha
tags: [ 'openvpn', 'openvpn_conf' ] tags: [ 'openvpn', 'openvpn_conf' ]
- block: # Does not work right now. The error is
- name: Get the dh file from the master host # fatal: [gw2.d4science.org -> gw1.d4science.org]: FAILED! => {"changed": false, "failed": true, "msg": "Boolean root not in either boolean list"}
synchronize: src={{ openvpn_conf_dir }}/dh2048.pem dest=rsync://{{ ansible_fqdn }}/{{ openvpn_conf_dir }}/dh2048.pem mode=0440 owner=root group=root # - block:
delegate_to: '{{ openvpn_master_host }}' # - 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
# delegate_to: '{{ openvpn_master_host }}'
- name: Get the ta key from the master host # - name: Get the ta key from the master host
synchronize: src={{ openvpn_conf_dir }}/ta.key dest=rsync://{{ ansible_fqdn }}/{{ openvpn_conf_dir }}/ta.key mode=0440 owner=root group=root # synchronize: src={{ openvpn_conf_dir }}/ta.key dest=rsync://root@{{ ansible_fqdn }}/{{ openvpn_conf_dir }}/ta.key
delegate_to: '{{ openvpn_master_host }}' # delegate_to: '{{ openvpn_master_host }}'
when: openvpn_ha and not openvpn_is_master_host # when: openvpn_ha and not openvpn_is_master_host
tags: [ 'openvpn', 'openvpn_conf', 'openvpn_shared_secrets' ] # tags: [ 'openvpn', 'openvpn_conf', 'openvpn_shared_secrets' ]
- block: - block: