Created
July 14, 2015 19:20
-
-
Save jriguera/5a3e22dd5d718695a326 to your computer and use it in GitHub Desktop.
How to deploy a single role without create a specific playbook
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
Create a playbook called deploy_role.yml: | |
- hosts: {{ hosts }} | |
roles: {{ roles }} | |
And then you can do: | |
ansible-playbook deploy_role.yml -e hosts=somehost -e roles=somerole | |
It has to be in the right directory for it to work. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment