Skip to content

Commit

Permalink
temporarily add a debug task to see what the pipeline will output
Browse files Browse the repository at this point in the history
  • Loading branch information
andanotheruser committed Nov 14, 2024
1 parent b41af34 commit b5f7e5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/manage_node_state.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
- name: manage_node_state | Populate service facts
ansible.builtin.service_facts:

- name: manage_node_state | Debug: Print ansible_facts.services

Check failure on line 12 in tasks/manage_node_state.yml

View workflow job for this annotation

GitHub Actions / pre-commit Lint

12:34 syntax error: mapping values are not allowed here (syntax)

Check failure on line 12 in tasks/manage_node_state.yml

View workflow job for this annotation

GitHub Actions / Molecule Test (debian11, 3.10)

12:34 syntax error: mapping values are not allowed here (syntax)

Check failure on line 12 in tasks/manage_node_state.yml

View workflow job for this annotation

GitHub Actions / Molecule Test (debian12, 3.10)

12:34 syntax error: mapping values are not allowed here (syntax)

Check failure on line 12 in tasks/manage_node_state.yml

View workflow job for this annotation

GitHub Actions / Molecule Test (debian10, 3.10)

12:34 syntax error: mapping values are not allowed here (syntax)

Check failure on line 12 in tasks/manage_node_state.yml

View workflow job for this annotation

GitHub Actions / Molecule Test (rocky8, 3.10)

12:34 syntax error: mapping values are not allowed here (syntax)

Check failure on line 12 in tasks/manage_node_state.yml

View workflow job for this annotation

GitHub Actions / Molecule Test (rocky9, 3.10)

12:34 syntax error: mapping values are not allowed here (syntax)

Check failure on line 12 in tasks/manage_node_state.yml

View workflow job for this annotation

GitHub Actions / Molecule Test (ubuntu1804, 3.10)

12:34 syntax error: mapping values are not allowed here (syntax)

Check failure on line 12 in tasks/manage_node_state.yml

View workflow job for this annotation

GitHub Actions / Molecule Test (ubuntu2004, 3.10)

12:34 syntax error: mapping values are not allowed here (syntax)

Check failure on line 12 in tasks/manage_node_state.yml

View workflow job for this annotation

GitHub Actions / Molecule Test (ubuntu2204, 3.10)

12:34 syntax error: mapping values are not allowed here (syntax)
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
Expand All @@ -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:
Expand Down

0 comments on commit b5f7e5b

Please sign in to comment.