From 8f8a7858983866f5e8e9dbde707417e437606248 Mon Sep 17 00:00:00 2001 From: Joshua Hoffmann Date: Thu, 14 Nov 2024 13:31:33 +0100 Subject: [PATCH] temporarily add a debug task to see what the pipeline will output --- tasks/manage_node_state.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tasks/manage_node_state.yml b/tasks/manage_node_state.yml index ae49acf..30f3445 100644 --- a/tasks/manage_node_state.yml +++ b/tasks/manage_node_state.yml @@ -9,6 +9,10 @@ - name: manage_node_state | Populate service facts ansible.builtin.service_facts: +- name: "manage_node_state | Debug: Print ansible_facts.services" + ansible.builtin.debug: + msg: "{{ ansible_facts.services }}" + - name: manage_node_state | reset failed status (otherwise service can't be stopped) command: "systemctl reset-failed {{ mariadb_systemd_service_name }}" # noqa command-instead-of-module become: true @@ -17,7 +21,7 @@ when: - '"stopped" in mariadb_systemd_service_state' - inventory_hostname == item - - '"failed" in ansible_facts.services[mariadb_systemd_service_name].state' + - "'failed' in ansible_facts.services[mariadb_systemd_service_name].state" - name: manage_node_state | ensure node is fully stopped before continuing ansible.builtin.service: