--- - import_tasks: install.yml when: - services.dnsmasq.enable is defined - services.dnsmasq.enable is true - import_tasks: configure.yml when: - services.dnsmasq.enable is defined - services.dnsmasq.enable is true - import_tasks: start.yml when: - services.dnsmasq.enable is defined - services.dnsmasq.enable is true - import_tasks: remove.yml when: - services.dnsmasq.enable is defined - services.dnsmasq.enable is false - meta: flush_handlers