I wanted to try Ansible as deployment tool and have some setup to use with Vagrant. Deployment of that devel VM is working, I wanted to use same playbook on barebone server by manually running ansible-playbook.
However I have some specific config in ansible because of Vagrant, for example user vagrant and use sudo.
Can you share an advice how should I make ansible playbook usable without neccesity to change anything in the playbook when provisioning servers with root acess and key auth for example in contrare to vagrant sudo user.
I wanted to try Ansible as deployment tool and have some setup to use with Vagrant. Deployment of that devel VM is working, I wanted to use same playbook on barebone server by manually running ansible-playbook.
However I have some specific config in ansible because of Vagrant, for example user vagrant and use sudo.
Can you share an advice how should I make ansible playbook usable without neccesity to change anything in the playbook when provisioning servers with root acess and key auth for example in contrare to vagrant sudo user.
You should put the login information in your inventory file(s)…
HI thanks for help, in the meantime I actually carefully read a little bit of documentation with understanding not just reading . Nevertheless I will hangout with the ansible community, I find it much simpler than chef.