From 4d918e0bd005338536e89b5b912a7041f1f54248 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 18 Oct 2016 19:15:13 +0200 Subject: [PATCH] library/roles/openvpn/tasks/openvpn.yml: Comment out the tasks that copy the key files. They do not work (ansible bug?). --- openvpn/tasks/openvpn.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/openvpn/tasks/openvpn.yml b/openvpn/tasks/openvpn.yml index 1e76ca94..600f039a 100644 --- a/openvpn/tasks/openvpn.yml +++ b/openvpn/tasks/openvpn.yml @@ -88,17 +88,19 @@ when: openvpn_is_master_host or not openvpn_ha tags: [ 'openvpn', 'openvpn_conf' ] -- block: - - name: Get the dh file from the master host - synchronize: src={{ openvpn_conf_dir }}/dh2048.pem dest=rsync://{{ ansible_fqdn }}/{{ openvpn_conf_dir }}/dh2048.pem mode=0440 owner=root group=root - delegate_to: '{{ openvpn_master_host }}' +# Does not work right now. The error is +# fatal: [gw2.d4science.org -> gw1.d4science.org]: FAILED! => {"changed": false, "failed": true, "msg": "Boolean root not in either boolean list"} +# - 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 +# delegate_to: '{{ openvpn_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 - 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 +# delegate_to: '{{ openvpn_master_host }}' - when: openvpn_ha and not openvpn_is_master_host - tags: [ 'openvpn', 'openvpn_conf', 'openvpn_shared_secrets' ] +# when: openvpn_ha and not openvpn_is_master_host +# tags: [ 'openvpn', 'openvpn_conf', 'openvpn_shared_secrets' ] - block: