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

13 lines
279 B
YAML
Raw Permalink Normal View History

2020-09-15 21:27:06 +02:00
---
2020-09-19 17:32:17 +02:00
- name: Register NGINX config
command: nginx -T
ignore_errors: "{{ ansible_check_mode }}"
check_mode: false
2020-09-15 21:27:06 +02:00
changed_when: false
register: config_full
2020-09-15 21:27:06 +02:00
2020-09-19 17:32:17 +02:00
- name: Print NGINX config
2020-09-15 21:27:06 +02:00
debug:
var: config_full.stdout_lines
when: config_full.stdout_lines is defined