Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] openvpn_tls_key file is read before creation #164

Open
aakhundov opened this issue Jun 15, 2020 · 5 comments
Open

[Bug] openvpn_tls_key file is read before creation #164

aakhundov opened this issue Jun 15, 2020 · 5 comments

Comments

@aakhundov
Copy link

Enabling openvpn_tls_auth leads to an error in the Read TLS-auth key task.

When openvpn_tls_auth is set, the openvpn_tls_key file is created in tasks/authentication/tls.yml. The same file is read in tasks/core/read-client-files.yml (when openvpn_tls_auth and openvpn_unified_client_profiles are set). In ff24a35 the order of creation and reading was swapped: now reading the openvpn_tls_key file is attempted before the file is created.

@frank3427
Copy link

I just ran the latest pull and I am getting an error in the Read TLS-auth key task.

@frank3427
Copy link

frank3427 commented Feb 15, 2021

I have change the order on openvpn.yml to the following

  • include_tasks: authentication/tls.yml

  • import_tasks: core/clients.yml

  • include_tasks: core/read-client-files.yml
    when: openvpn_unified_client_profiles

and now the ta.key is created but I am now getting the following error in "generate client configuration" in core/client.yml
"msg": "AnsibleUndefinedVariable: 'openvpn_ca_file_contents' is undefined"}

@mikysal78
Copy link

You have try this pull #169 ?
i use on debian buster.

@mizraelson
Copy link

mizraelson commented Jun 4, 2021

Same issue

@mizraelson
Copy link

You have try this pull #169 ?
i use on debian buster.

was it successfully merged ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants