--- - import_tasks: install.yml when: - services.nginx.enable is defined - services.nginx.enable is true - import_tasks: configure.yml when: - services.nginx.enable is defined - services.nginx.enable is true - import_tasks: vhosts.yml when: - services.nginx.enable is defined - services.nginx.enable is true - services.nginx.vhosts is defined - import_tasks: firewall.yml when: - services.nginx.enable is defined - services.nginx.enable is true - network.nftables.enable is true - import_tasks: start.yml when: - services.nginx.enable is defined - services.nginx.enable is true - import_tasks: remove.yml when: - services.nginx.enable is defined - services.nginx.enable is false - meta: flush_handlers