Skip to content

Instantly share code, notes, and snippets.

@AAlvz
Last active June 3, 2016 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AAlvz/eadfaffd1e278ba8eab34f4988f5c3fc to your computer and use it in GitHub Desktop.
Save AAlvz/eadfaffd1e278ba8eab34f4988f5c3fc to your computer and use it in GitHub Desktop.
GOROLE (FIRST ROLE)
https://github.com/AAlvz/ansible-go
SECOND ROLE
tasks/main.yml
- debug: msg="System {{ lookup('env','GOPATH' }}"
FIRST PROVISION
TASK: [gh_service | debug msg="System "] **************************************
ok: [node.go] => {
"msg": "System "
}
SECOND PROVISION
TASK: [gh_service | debug msg="System /home/vagrant/go"] **********************
ok: [node.go] => {
"msg": "System /home/vagrant/go"
}
site.yml
- hosts: nodee.go
roles:
- { role: golang, sudo: yes }
- role: test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment