--- - name: "nginx | copy status vhost" copy: src: "status.conf" dest: "/etc/nginx/sites-available/00-status.conf" mode: "0644" force: yes backup: yes when: is_nginx - name: "nginx | activate the status vhost" file: src: "/etc/nginx/sites-available/00-status.conf" dest: "/etc/nginx/sites-enabled/00-status.conf" state: link