---
- name: sdasd
shell: 'echo "aaaa"'
when: ansible_distribution=="Ubuntu"
- name: wewewe
shell: 'echo "bbbb"'
when: ansible_distribution=="CentOS"
---
- name: sdasd
shell: 'echo "aaaa"'
when: ansible_distribution=="Ubuntu"
- name: wewewe
shell: 'echo "bbbb"'
when: ansible_distribution=="CentOS"