Created
June 20, 2018 20:23
-
-
Save jondkelley/b198f68bda8bfc994e4c800d60d31f39 to your computer and use it in GitHub Desktop.
Ansible hacks
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
--- | |
- name: experiment | |
hosts: box | |
tasks: | |
- debug: | |
msg: "before we run our role" | |
- name: Run a task from a role | |
include_role: | |
name: rolename | |
tasks_from: roletaskname | |
when: ansible_os_family == "Debian" | |
- name: Run a task from a role1 | |
include_role: | |
name: rhidm_manage_users | |
tasks_from: roletask1 | |
when: ssr = 'man_create_tenant1' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment