--- - name: Register NGINX config command: nginx -T changed_when: false register: config - name: Print NGINX config debug: var: config.stdout_lines