Skip to content

Commit

Permalink
Don't restart in Docker.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Jan 31, 2019
1 parent 0f721d7 commit 0dce56f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
- name: systemctl daemon-reload
systemd:
daemon_reload: yes
when:
- ansible_virtualization_type != "docker" or tomcat_ignore_docker

- name: restart tomcat instance
service:
name: "{{ instance_name }}"
state: restarted
when:
- ansible_virtualization_type != "docker" or tomcat_ignore_docker

0 comments on commit 0dce56f

Please sign in to comment.