geerlingguy / ansible-role-docker

Ansible Role - Docker
https://galaxy.ansible.com/geerlingguy/docker/
MIT License
1.8k stars 851 forks source link

error in first run during check if there are any users to add to docker group #431

Closed Findarato closed 1 month ago

Findarato commented 10 months ago

I have one user to be added to docker group "joe"


TASK [geerlingguy.docker : Check if there are any users to add to the docker group.] *****************
fatal: [IP.ADDRESS.NOT.HERE]: FAILED! => 
  msg: |-
    The conditional check 'item not in ansible_facts.getent_group["docker"][2]' failed. The error was: Unexpected templating type error occurred on ({% if item not in ansible_facts.getent_group["docker"][2] %} True {% else %} False {% endif %}): 'in <string>' requires string as left operand, not dict. 'in <string>' requires string as left operand, not dict

    The error appears to be in '/home/joe/.ansible/roles/geerlingguy.docker/tasks/main.yml': line 89, column 3, but may
    be elsewhere in the file depending on the exact syntax problem.

    The offending line appears to be:

    - name: Check if there are any users to add to the docker group.
      ^ here

Target OS is RHEL 8.8

hz61p1 commented 7 months ago

Same error on Debian 12

github-actions[bot] commented 3 months ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

github-actions[bot] commented 1 month ago

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.