--- - include_tasks: debian.yml when: not cacert_remove and (ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu') - include_tasks: debian-remove.yml when: cacert_remove and (ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu') - include_tasks: fedora.yml when: not cacert_remove and ansible_distribution == 'Fedora' - include_tasks: fedora-remove.yml when: cacert_remove and ansible_distribution == 'Fedora'