You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting an error when trying to use this role.
TASK [weareinteractive.openssl : Installing packages] **********************************************************************************************************
fatal: [host1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'openssl_packages' is undefined\n\nThe error appears to be in '.ansible/roles/weareinteractive.openssl/tasks/install.yml': line 3, 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: Installing packages\n ^ here\n"}
I found .weareinteractive.openssl/vars/defaults.yml that defines this, but maybe I am missing something?
The text was updated successfully, but these errors were encountered:
I am experiencing this also. Based on some sleuthing with a well-placed debug: msg=..., I bet that you are attempting to install this role onto a Debian variant (I am attempting an install on Ubuntu). Follow me here (I am a tad green on role dependencies)...
weareinteractive/ansible-vsftpd depends on weareinteractive/ansible-openssl. weareinteractive/ansible-vsftpd seems to make an attempt to load weareinteractive/ansible-openssl for us by simply depending on weareinteractive/ansible-openssl. But, a well-placed debug statement shows that when weareinteractive/ansible-openssl attempts to do its install into a Debian distro, it is not picking up roles/weareinteractive.openssl/vars/default.yml as you (and I) expect, it is picking up vsftpd's Debian vars: roles/vsftpd/vars/Debian.yml.
roles/vsftpd/vars/Debian.yml is being found with this command in roles/weareinteractive.openssl/tasks/vars.yml:
... which is a nasty bug that actually seems to be in Ansible's realm that shouldn't be referring to another role's YAML.
My work-around ('cause I'm green and really am unqualified to do a pull-request for this) was to add weareinteractive/ansible-openssl to my role dependencies in my roles/requirements.yml:
I am getting an error when trying to use this role.
I found
.weareinteractive.openssl/vars/defaults.yml
that defines this, but maybe I am missing something?The text was updated successfully, but these errors were encountered: