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

15 lines
277 B
YAML
Raw Normal View History

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