Last active
October 3, 2016 23:37
-
-
Save gilou/f67f7a0c772a7cb53537c8f42fa50e2a to your computer and use it in GitHub Desktop.
Quick and dirty ansible configuration to work with Vagrant's ansible provisionner, allowing for ad-hoc & playbook fun.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[defaults] | |
remote_user = vagrant | |
inventory = .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory | |
host_key_checking=False | |
[ssh_connection] | |
ssh_args = -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ControlMaster=auto -o ControlPersist=60s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Somewhere along the Vagrantfile, you need to set up the ansible provisionner | |
config.vm.provision "ansible" do |ansible| | |
ansible.playbook = "go.yml" | |
end | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment