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 when: opensearch_unit_update is changed
- name: Ensure that opensearch is running and enabled - name: Ensure that opensearch is running and enabled
service: opensearch service:
status: started name: opensearch
enabled: true status: started
enabled: true
when: opensearch_enabled when: opensearch_enabled
- name: Ensure that opensearch is stopped and disabled - name: Ensure that opensearch is stopped and disabled
service: opensearch service:
status: stopped name: opensearch
enabled: false status: stopped
enabled: false
when: not opensearch_enabled when: not opensearch_enabled
tags: ['opensearch', 'opensearch_service'] tags: ['opensearch', 'opensearch_service']