ansible-role-nginx/tasks/config/debug-output.yml
Alessandro Fael Garcia 8b41c27cb5
Improve the error formatting when there's a syntax error (#324)
And remove the debug tasks messages.
2020-09-18 19:51:50 +02:00

10 lines
174 B
YAML

---
- name: "Register NGINX configuration"
command: "nginx -T"
changed_when: false
register: config
- name: "Print NGINX config"
debug:
var: config.stdout_lines