--- - fail: msg: only compatible with Debian >= 8 when: - ansible_distribution != "Debian" or ansible_distribution_major_version | version_compare('8', '<') - include: certbot.yml - include: acme.yml - include: conf.yml - include: scripts.yml - name: Determine Apache presence stat: path: /etc/apache2/apache2.conf check_mode: no register: sta - name: Determine Nginx presence stat: path: /etc/nginx/nginx.conf check_mode: no register: stn - include: apache.yml when: sta.stat.isreg is defined and sta.stat.isreg - include: nginx.yml when: stn.stat.isreg is defined and stn.stat.isreg