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 moving from the "old roles" currently and was expecting the change to the new collection "plug and play". I am most likely doing something very stupidly wrong here.
Reproduction steps
This is how I run the playbook:
ansible-playbook --vault-id secrets@vault --ask-become-pass -i production server-hardening-latest.yml
Current Behavior
TASK [devsec.hardening.os_hardening : Extract system accounts from local user database] ********************************************************************************************
fatal: [servername.our.domain]: FAILED! => {"msg": "The conditional check 'item is not in os_always_ignore_users' failed. The error was: template error while templating string: no test named 'in'. String: {% if item is not in os_always_ignore_users %} True {% else %} False {% endif %}\n\nThe error appears to be in '/home/ansible/.ansible/collections/ansible_collections/devsec/hardening/roles/os_hardening/tasks/user_accounts.yml': line 14, 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: Extract system accounts from local user database\n ^ here\n"}
Expected Behavior
I expect this to work. I do not know what else to expect.
OS / Environment
Provide all relevant information below, e.g. target OS versions, network device firmware, etc.
Centos 7
I am moving from the "old roles" currently and was expecting the change to the new collection "plug and play".
There were significant changes since the old roles where deprecated.
But I guess your problem is that you're using old, unsupported versions of basically anything. Centos 7 is unsupported, Python 2.7 is unsupported, Ansible 2.9 is unsupported. Try upgrading these, then it should work.
Description
I have installed latest ansible. I am running Python 2.7. Ansible is installed using pip.
This is my playbook:
I am moving from the "old roles" currently and was expecting the change to the new collection "plug and play". I am most likely doing something very stupidly wrong here.
Reproduction steps
This is how I run the playbook:
Current Behavior
Expected Behavior
I expect this to work. I do not know what else to expect.
OS / Environment
Provide all relevant information below, e.g. target OS versions, network device firmware, etc.
Centos 7
Ansible Version
Collection Version
The text was updated successfully, but these errors were encountered: