Skip to content

Commit

Permalink
More idempotency
Browse files Browse the repository at this point in the history
  • Loading branch information
bviktor committed Jan 21, 2023
1 parent 5f7cfd2 commit ed25a7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tasks/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ed25a7d

Please sign in to comment.