2020-09-15 21:27:06 +02:00
|
|
|
---
|
2020-09-19 17:32:17 +02:00
|
|
|
- name: Register NGINX config
|
2022-03-22 18:27:11 +01:00
|
|
|
ansible.builtin.command: nginx -T
|
2020-10-28 20:12:57 +01:00
|
|
|
ignore_errors: "{{ ansible_check_mode }}"
|
2021-06-02 17:47:44 +02:00
|
|
|
check_mode: false
|
2020-09-15 21:27:06 +02:00
|
|
|
changed_when: false
|
2020-10-28 20:12:57 +01:00
|
|
|
register: config_full
|
2020-09-15 21:27:06 +02:00
|
|
|
|
2020-09-19 17:32:17 +02:00
|
|
|
- name: Print NGINX config
|
2022-03-22 18:27:11 +01:00
|
|
|
ansible.builtin.debug:
|
2020-10-28 20:12:57 +01:00
|
|
|
var: config_full.stdout_lines
|
|
|
|
when: config_full.stdout_lines is defined
|