$ 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