Created
August 15, 2016 15:27
-
-
Save greenbrian/6c6568e5bf525d37bb621956595fe495 to your computer and use it in GitHub Desktop.
ansible role notes
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: 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