From 8df38cf4b75a3a29db3a8f17fc0acc0f6699a624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20H=C3=B6sel?= Date: Mon, 1 Jul 2024 12:12:04 +0200 Subject: [PATCH] acme_cert: make nginx debug useful --- roles/step_acme_cert/molecule/verify.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/step_acme_cert/molecule/verify.yml b/roles/step_acme_cert/molecule/verify.yml index b93faa0a..23e7b489 100644 --- a/roles/step_acme_cert/molecule/verify.yml +++ b/roles/step_acme_cert/molecule/verify.yml @@ -43,10 +43,14 @@ delay: 5 until: _res is not failed rescue: - - name: Show nginx status + - name: Get nginx status ansible.builtin.command: journalctl -eu nginx.service changed_when: false check_mode: false + register: nginx_status + - name: Print nginx status + ansible.builtin.debug: + msg: "{{ nginx_status }}" - name: Fail Test ansible.builtin.fail: