Hello,
I'm trying to run a simple test playbook to copy files over to a vagrant
vm. The specs are:
ubuntu/trusty64 box
vagrant 1.7.3
ansible 1.9.2
The playbook looks like this:
---
- hosts: test-db
tasks:
- name: Add vagrant sudoers file
copy: src=vagrant_sudoers dest=/etc/sudoers.d/vagrant validate='visudo
-cf %s' group=root owner=root mode=440
sudo: true
- name: Add deploy group sudoers file
copy: src=deploy_sudoers dest=/etc/sudoers.d/deploy validate='visudo
-cf %s' group=root owner=root mode=440
sudo: true
Here is how i ran the playbook:
$ ansible-playbook -i ansible_hosts -u vagrant -U vagrant
--private-key=/home/sol/tmp/postgis/.vagrant/machines/db/virtualbox/private_key
--sudo test.yml
And getting the output:
PLAY [all]
********************************************************************
GATHERING FACTS
***************************************************************
ok: [192.168.50.4]
TASK: [Add vagrant sudoers file]
**********************************************
failed: [192.168.50.4] => {"checksum":
"f817b060b579b9ba2b9850b1177c0a2e938ab326", "failed": true}
msg: Destination /etc/sudoers.d not writable
FATAL: all hosts have already failed -- aborting
I can log in to the vagrant box as user vagrant and run sudo commands.
I'm wondering if i'm missing anything or this is a bug. I have been stuck
on this for hours and any help would be appreciated!
-Sol
--
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/057d305d-3bd5-4ebb-b625-bc40df8bb424%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.