Skip to content

Instantly share code, notes, and snippets.

@lukehinds
Created April 18, 2017 06:22
Show Gist options
  • Save lukehinds/024952468ee4aa8862bd2e30aac9ec05 to your computer and use it in GitHub Desktop.
Save lukehinds/024952468ee4aa8862bd2e30aac9ec05 to your computer and use it in GitHub Desktop.
$ cat Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.provision :shell, :inline => "sudo yum install epel-release -y"
config.vm.provision :ansible do |ansible|
ansible.playbook = "deploy.yml"
ansible.groups = {
"zuul" => ["default"],
}
end
end
$ cat deploy.yaml
---
- hosts: zuul
vars:
gerrit_server: 'https://my_gerrit.com'
status_page: yes
roles:
- role: bregman-arie.zuul
$ cat /etc/ansible/hosts  ✓  1374  07:20:39
[zuul]
127.0.0.1 ansible_connection=local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment