Hey Folks,
I'm running into the following error. I would appreciate any feedback.
-bash-4.1$ ansible --version
ansible 1.7 (devel f8bf9cdeec) last updated 2014/06/23 20:27:32 (GMT +000)
-bash-4.1$ ansible-playbook edit_sdc_cron.yml -i sdc_hosts -u ansible
--ask-pass -K
SSH password:
sudo password [defaults to SSH password]:
PLAY [editing cron]
***********************************************************
GATHERING FACTS
***************************************************************
ok: [sdc-webdev1]
TASK: [copy new backup.sdc file]
**********************************************
ok: [sdc-webdev1]
TASK: [change ownership and permissions of backup.sdc]
************************
failed: [sdc-webdev1] => {"failed": true, "parsed": false}
invalid output was:
SUDO-SUCCESS-euijcvjyrhtiwrgfnxbomdglywckoyub
/usr/bin/python: can't open file
'/home/ansible/.ansible/tmp/ansible-tmp-1405614771.73-68628807032256/file':
[Errno 13] Permission denied
FATAL: all hosts have already failed -- aborting
PLAY RECAP
********************************************************************
to retry, use: --limit @/home/ansible/edit_sdc_cron.retry
sdc-webdev1 : ok=2 changed=0 unreachable=0 failed=1
-bash-4.1$ cat edit_sdc_cron.yml
---
- name: editing cron
hosts: sdctest
tasks:
- name: copy new backup.sdc file
copy: src=backup.sdc dest=/tmp/backup.sdc
- name: change ownership and permissions of backup.sdc
file: path=/tmp/backup.sdc pathowner=root group=bin mode=700
sudo: yes
--
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/69b6343b-d836-4bb0-8320-9de623670684%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.