certificate migration breaks new installs
After a13d6e7f I get this:
fatal: [gateway1]: FAILED! => { "msg": "An unhandled exception occurred while running the lookup plugin 'file'. Error was a <class 'ansible.errors.AnsibleError'>, original message: could not locate file in lookup: /home/kwadronaut/dev/leap/liliacs/credentials/common/old_client_ca.crt" }
Is the Riseup/Calyx specific code:
- 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"
dest: /etc/leap/ca/leap_ca_bundle.crt
mode: 0444
notify:
- "restart docker-openvpn-openvpn"