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

Failure during "Set Client cert and CA info as fact" #64

Open
bobbyshaw opened this issue Jan 20, 2017 · 8 comments
Open

Failure during "Set Client cert and CA info as fact" #64

bobbyshaw opened this issue Jan 20, 2017 · 8 comments

Comments

@bobbyshaw
Copy link

Ansible version: 2.2.0.0

Installed role via git.

TASK [Stouts.openvpn : Set client cert and CA info as fact.] *******************
fatal: [vpn1]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: Unable to look up a name or access an attribute in template string ({{ openvpn_read_tlsauth_file_results['content'] | b64decode | default('') }}).\nMake sure your variable name does not contain invalid characters like '-': a2b_base64() argument 1 must be convertible to a buffer, not StrictUndefined\n\nThe error appears to have been in '/usr/local/etc/ansible/roles/Stouts.openvpn/tasks/read-client-files.yml': line 30, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Set client cert and CA info as fact.\n  ^ here\n"}
@luntzel
Copy link

luntzel commented Feb 1, 2017

same with ansible 2.2.1.0

@ponimas
Copy link

ponimas commented Feb 10, 2017

same with 2.1.4

@jasonsoutar
Copy link

I was having the same problem. I removed
- openvpn_unified_client_profiles: yes
from my playbook and it started working.

@mojojoseph
Copy link

And if someone wants unified client profiles? I receive this error as well and don't want to turn off that option.

@JonathanSerafini
Copy link

Seems like openvpn_unified_client_profiles only works in conjunction with openvpn_tls_auth=true

@mojojoseph
Copy link

Can confirm that setting openvpn_tls_auth: true will allow the unified client profiles. Just connected to my VPN with a unified profile and works great. Thanks @JonathanSerafini !

@rjonczy
Copy link

rjonczy commented Jul 25, 2017

I can also confirm that unified_client_profiles work with openvpn_tls_auth: true

@rolanddb
Copy link

Just one more data point: unified_client_profiles started working only when I set openvpn_tls_auth: true

ansible 2.3.1.0 (managed host: Ubuntu)

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

8 participants