Hello there! 
I try to use ansible-playbook. 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/516e42ae-7e68-42b1-af0c-fcccfd217cb8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to