Skip to content

Instantly share code, notes, and snippets.

@gilou
Last active October 3, 2016 23:37
Show Gist options
  • Save gilou/f67f7a0c772a7cb53537c8f42fa50e2a to your computer and use it in GitHub Desktop.
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.
[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
# 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