Created
July 14, 2020 12:31
-
-
Save benschweizer/7bc8ef3f9598e6ae238cbe3f93bed160 to your computer and use it in GitHub Desktop.
ansible roles from inventory vars
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
--- | |
- hosts: site | |
become: yes | |
gather_facts: no | |
tasks: | |
- name: Running role {{ role }} | |
include_role: | |
name: "{{ role }}" | |
loop: "{{ roles_to_apply }}" | |
loop_control: | |
loop_var: role | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment