--- - name: test nginx command: nginx -t notify: reload nginx - name: restart nginx service: name=nginx state=restarted enabled=yes