I have a bash script that I need to execute one of my nodes using ansible.
- name : execute the script for uploading www files
shell: /root/upload_www.sh
I end up with this error:
ssh -t -o StrictHostKeyChecking=no -i $key user@$kavya "sudo rsync -kavya \"ssh -o StrictHostKeyChecking=no -i $key\" /var/www/html user@$source:/var/www/"