Fix the service tasks.

This commit is contained in:
Andrea Dell'Amico 2022-05-09 19:10:59 +02:00
parent 960d403299
commit 6b16100964
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 8 additions and 6 deletions

View File

@ -86,15 +86,17 @@
when: opensearch_unit_update is changed
- name: Ensure that opensearch is running and enabled
service: opensearch
status: started
enabled: true
service:
name: opensearch
status: started
enabled: true
when: opensearch_enabled
- name: Ensure that opensearch is stopped and disabled
service: opensearch
status: stopped
enabled: false
service:
name: opensearch
status: stopped
enabled: false
when: not opensearch_enabled
tags: ['opensearch', 'opensearch_service']