public-health-ch/ansible/roles/nginxinc.nginx/tasks/config/debug-output.yml

13 lines
276 B
YAML
Raw Normal View History

2021-02-20 14:00:27 +00:00
---
- name: Register NGINX config
command: nginx -T
ignore_errors: "{{ ansible_check_mode }}"
check_mode: no
changed_when: false
register: config_full
- name: Print NGINX config
debug:
var: config_full.stdout_lines
when: config_full.stdout_lines is defined