ansible.posix.synchronize task failed with error 'Connection' object has no attribute '_new_stdin'
I have open sourced some Ansible roles I use for my personal projects. Everything was working well until one day running my playbook would always fail on the ansible.posix.synchronize task.
TASK [websites : push example.com contents] ************************************************************************************************************************** [ERROR]: Task failed: 'Connection' object has no attribute '_new_stdin' Origin: /Users/aikchar/ansible-roles/websites/tasks/rhel.yml:18:3 16 become: yes 17 18 - name: "push {{ domain_name }} contents" ^ column 3 fatal: [example.com]: FAILED! => {"changed": false, "msg": "Task failed: 'Connection' object has no attribute '_new_stdin'"}