Created
April 18, 2017 06:22
-
-
Save lukehinds/024952468ee4aa8862bd2e30aac9ec05 to your computer and use it in GitHub Desktop.
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
$ 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