Hello there! 
I try to use ansible-playbook. (*ansible 1.9.4, Ubuntu 14.04*)
I have dzdo -l permission like: (root) /bin/cp * /usr/local/bin
So, I wanna copy a script file from local machine to remote /usr/local/bin 
plz see playbook.yml below:

---
- name: Copy scrypt file into /usr/local/bin
  hosts: icinga
  gather_facts: no
  any_errors_fatal: True
  tasks:
  - name: "copy to my home directory"
    copy: src=/local/path dest=~/script.sh
  - name: "try to copy into remote /usr/loacl/bin via dzdo"
    become: yes
    become_method: dzdo
    shell: /bin/cp ~/script.sh /usr/local/bin

Finally, the first step is successfull, second get the error like: This 
modele doesn't support running  commands via dzdo. 
Any ideas?

-- 
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/ca77e2bc-fb5f-49f2-8fc4-4a4af85a8cb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to