Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - hosts: localhost
- vars:
- have_ad_provider_1: "{{ ansible_os_family == 'RedHat' and ansible_distribution_major_version|int >= 6 }}"
- have_ad_provider_2: "{{ ansible_os_family == 'FluffyBunny' }}"
- tasks:
- - debug:
- msg: Hello world
- when: have_ad_provider_1
- - debug:
- msg: Goodnight moon
- when: have_ad_provider_2
Add Comment
Please, Sign In to add comment