'ansible-playbook --limit testing vagrant-setup_do.yml' will throw an error for the other host.
So far I've not managed to find a better way to address this than simply commenting out hosts in the inventory file before running the setup play. Once the setup play has run the main.yml play will work fine with this inventory layout, its just the inital setup run that is clunky.
Suggestions for making the initial setup less clunky are welcome. Right now the only thing I can think of is to work outside of ansible, setting up the root account with vagrant to match that on the non-vagrant hosts, so I can have a single setup play.
Or given that setup only has to be run once per host, maybe I'm trying to hard and just need to accept a little manual work getting things set up...
Right now the only thing I can think of is to work outside of ansible, setting up the root account with vagrant to match that on the non-vagrant hosts, so I can have a single setup play.
--To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c4955e25-6220-4048-b432-990c3f14db47%40googlegroups.com.
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
I highly recommend arranging variables in group_vars/ and host_vars/ directories versus trying to fit them into the INI file -- IMHO, it's a lot easier to read.
ansible_ssh_user in "vars" as this will override that setting, which seems to be not what you want to do.