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

13 lines
311 B
YAML

---
- name: Register NGINX config
ansible.builtin.command: nginx -T
ignore_errors: "{{ ansible_check_mode }}"
check_mode: false
changed_when: false
register: config_full
- name: Print NGINX config
ansible.builtin.debug:
var: config_full.stdout_lines
when: config_full.stdout_lines is defined