Created
April 12, 2013 17:25
-
-
Save arcimboldo/5373652 to your computer and use it in GitHub Desktop.
This file contains hidden or 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: Collecting facts | |
hosts: all | |
gather_facts: yes | |
vars: | |
is_ubuntu: "'${ansible_distribution}' == 'Ubuntu'" | |
is_centos: "'${ansible_distribution}' == 'CentOS'" | |
- name: new play | |
hosts: all | |
tasks: | |
- action: debug msg="I am ubuntu" | |
only_if: $is_ubuntu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment