Skip to content

Instantly share code, notes, and snippets.

@greenbrian
Created August 15, 2016 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greenbrian/6c6568e5bf525d37bb621956595fe495 to your computer and use it in GitHub Desktop.
Save greenbrian/6c6568e5bf525d37bb621956595fe495 to your computer and use it in GitHub Desktop.
ansible role notes
---
- hosts: all
roles:
- role: foo
param1: '{{ foo }}'
param2: '{{ some_var1 + "/" + some_var2 }}'
when: ansible_os_family == 'RedHat'
tasks:
- name: some task that runs after your roles
shell: rm -rf /some/file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment