Skip to content

Instantly share code, notes, and snippets.

@jondkelley
Created June 20, 2018 20:23
Show Gist options
  • Save jondkelley/b198f68bda8bfc994e4c800d60d31f39 to your computer and use it in GitHub Desktop.
Save jondkelley/b198f68bda8bfc994e4c800d60d31f39 to your computer and use it in GitHub Desktop.
Ansible hacks
---
- 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