hi,
I can use the command below to send some files to remote:
$ ansible -e 'ansible_shell_type=sh' -i hosts -m synchronize -a
"src=node_modules/ dest=/tmp/node_modules/" dev
host1 | SUCCESS => {
"changed": false,
"cmd": "/usr/bin/rsync --delay-updates -F --compress --archive --rsh
'/usr/bin/ssh -S none -o StrictHostKeyChecking=no'
--out-format='<<CHANGED>>%i %n%L'
\"/Users/wd/work/vata_nodejs/node_modules/\" \"host1:/tmp/node_modules/\"",
"msg": "",
"rc": 0,
"stdout_lines": []
}
But if I set 'ansible_shell_type=sh' as blow in inventory file:
[dev]
host1
[dev:vars]
ansible_shell_type=sh
And then use command below to test:
$ ansible -i dev -m synchronize -a "src=node_modules/
dest=/tmp/node_modules/" dev
host1 | FAILED! => {
"failed": true,
"msg": "Invalid shell type specified (zsh), or the plugin for that
shell type is missing."
}
It seems the settings I added not work, am I made some misunderstand about
the host vars ?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/526962dd-e831-491b-b7c5-41922877eca4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.