summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax B <max-b@riseup.net>2023-01-19 16:10:07 +0000
committerMax B <max-b@riseup.net>2023-01-19 16:10:07 +0000
commite7660f3067eec0ae5201c7be418ccafec370fec7 (patch)
treef599a0fc69ab88b5b0e98fc8fb148dba96708155
parent65c4c9c1c91f7c432c23be9366541fdf6949944d (diff)
parent1097e5a0ab36bb2edfe4e841e1ec48a003c5b98b (diff)
Merge branch 'maxb/openvpn-creds-fix' into 'main'
Allow for missing old_client_ca.crt file See merge request leap/container-platform/lilypad!65
-rw-r--r--config/roles/openvpn/tasks/credentials.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/roles/openvpn/tasks/credentials.yml b/config/roles/openvpn/tasks/credentials.yml
index 316d621..b7d1c26 100644
--- a/config/roles/openvpn/tasks/credentials.yml
+++ b/config/roles/openvpn/tasks/credentials.yml
@@ -46,7 +46,7 @@
- name: Install client certificate generating and API endpoint CA bundle
copy:
- content: "{{ lookup('file', '{{ credentials_dir }}/common/old_client_ca.crt') }}\n{{lookup('file', '{{ credentials_dir }}/common/api_ca.crt') }}\n{{ lookup('file', '{{ credentials_dir }}/common/client_ca.crt') }}\n"
+ content: "{{ lookup('file', '{{ credentials_dir }}/common/old_client_ca.crt', errors='ignore') }}\n{{lookup('file', '{{ credentials_dir }}/common/api_ca.crt') }}\n{{ lookup('file', '{{ credentials_dir }}/common/client_ca.crt') }}\n"
dest: /etc/leap/ca/leap_ca_bundle.crt
mode: 0444
notify: