ansible-role-nginx/tasks/config/debug-output.yml

10 lines
174 B
YAML
Raw Normal View History

2020-09-15 21:27:06 +02:00
---
- name: "Register NGINX configuration"
command: "nginx -T"
2020-09-15 21:27:06 +02:00
changed_when: false
register: config
- name: "Print NGINX config"
debug:
var: config.stdout_lines