Skip to content
Snippets Groups Projects
Verified Commit a304fa48 authored by Chris Croome's avatar Chris Croome
Browse files

fix brackets

parent 1a5ff5f4
No related branches found
No related tags found
No related merge requests found
Pipeline #33584 failed
......@@ -116,8 +116,8 @@
- systemd_unit.state is defined
- systemd_unit.state == "stopped"
- >-
( systemd_service_facts | community.general.json_query(systemd_service_jpq)).status == "enabled" ) or
( systemd_service_facts | community.general.json_query(systemd_service_jpq)).state == "running" )
( (systemd_service_facts | community.general.json_query(systemd_service_jpq)).status == "enabled" ) or
( (systemd_service_facts | community.general.json_query(systemd_service_jpq)).state == "running" )
- name: Unit enabled and started
ansible.builtin.systemd:
......@@ -129,8 +129,8 @@
when: >-
( ( systemd_unit.state is not defined ) or
( systemd_unit.state == "enabled" ) ) and
( ( systemd_service_facts | community.general.json_query(systemd_service_jpq)).status != "enabled" ) or
( systemd_service_facts | community.general.json_query(systemd_service_jpq)).state != "running" ) )
( ( (systemd_service_facts | community.general.json_query(systemd_service_jpq)).status != "enabled" ) or
( (systemd_service_facts | community.general.json_query(systemd_service_jpq)).state != "running" ) )
- name: Systemd unit restarted
ansible.builtin.systemd:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment