Hi,
I'm having weird problems where sudo authentication seems to fail in the middle of a playbook.
The playbook is run like this:
ansible-playbook ... -b --ask-become-pass ... myplaybook.yml
The playbook includes this bit that I'm using to reproduce an actual problem:
- name: test123
command: touch /tmp/test/{{item.key}}
with_dict: "{{users | combine(ext_users | default({})) }}"
When I run the playbook I get this error:
TASK [playbook1 : test123] ***********************************************
fatal: [foo.bar.baz]: FAILED! => {"failed": true, "msg": "ERROR! Incorrect sudo password"}
The strange part is that only some of the expected files get created (and owned by root), but the task appears to fail in the middle of iterating dictionary keys.
Since some files get created I assume 1) sudo password is correctly entered and 2) the task is run as root.
Any ideas why this happens?
marko