Skip to content

Instantly share code, notes, and snippets.

---
- name: Collecting facts
hosts: all
gather_facts: yes
vars:
is_ubuntu: "'${ansible_distribution}' == 'Ubuntu'"
is_centos: "'${ansible_distribution}' == 'CentOS'"
- name: new play
hosts: all