From ed25a7d0818aea669138f600c0592f6638839123 Mon Sep 17 00:00:00 2001 From: Viktor Berke Date: Sat, 21 Jan 2023 13:31:58 +0100 Subject: [PATCH] More idempotency --- tasks/service.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/service.yml b/tasks/service.yml index 24782f3..81cddee 100644 --- a/tasks/service.yml +++ b/tasks/service.yml @@ -14,8 +14,13 @@ daemon_reload: true when: tomcat_unit.changed +# TODO role parameter? - name: Enable Tomcat service systemd: name: tomcat.service enabled: true + +- name: Start Tomcat service + systemd: + name: tomcat.service state: started