Last active
November 18, 2019 15:07
-
-
Save agaffney/fda5fa19d00ae79b02357a799a0b14ee to your computer and use it in GitHub Desktop.
Example of installing a role from Galaxy and using it in the same play
This file contains hidden or 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
- hosts: localhost | |
gather_facts: no | |
vars: | |
test_role: grog.debug-variable | |
tasks: | |
- command: ansible-galaxy install -p {{ playbook_dir }}/roles {{ test_role }} | |
- include_role: | |
name: '{{ test_role }}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment