SUMMARY
ISSUE TYPE
- Bug Report / Issue workaround
- hosts: somehost
tasks:
- name: Synchronize
synchronize:
src: README.md
dest: /tmp/
COMPONENT NAME
synchronize
ANSIBLE VERSION
ansible 2.7.10
CONFIGURATION
OS / ENVIRONMENT
Linux
STEPS TO REPRODUCE
- hosts: somehost
tasks:
- name: Synchronize
synchronize:
src: README.md
dest: /tmp/
EXPECTED RESULTS
I’d file to be syncrhonize. If I execute any command on the remote host it works
ACTUAL RESULTS
task path: xxx.yml:10
fatal: [somehost]: FAILED! => {}
MSG:
Invalid shell type specified (bash), or the plugin for that shell type is missing.
I’d like to be able to synchronize from the control machine to the host, but I’m getting the aforementioned error. One thing that “works” is modifying the global ansible.cfg not to use shell, but this is not an option since it directly impacts all my existing scripts. Is there a way to either execute synchronize from controller to remote using bash or to specify the shell for that particular command? Somthing like shell: ‘sh’.
Also, I’m curious as to why the error. It only happens when synchronizing between controller and host. Between remote hosts it does not fail.
Thanks