Skip to content

Commit

Permalink
Create uninstall-tomcat.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lerndevops authored Jan 23, 2021
1 parent 739a985 commit 05ebd4f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ansible/roles/tomcat/tasks/uninstall-tomcat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
- name: stop tomcat process
systemd:
name: tomcat
state: stopped
enabled: no
- name: remove tomcat symlink
file:
path: /opt/tomcat
state: absent
- name: remove tomcat
file:
path: /opt/apache-tomcat-8.5.40
state: absent
- name: remove user "tomcat"
user:
name: tomcat
state: absent
- name: remove group tomcat
group:
name: tomcat
state: absent

0 comments on commit 05ebd4f

Please sign in to comment.