-
-
Save sathishkumarpkd/21e5fcd465da03d0e8a8ba637e900213 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: webservers | |
tasks: | |
- name: Make sure that we can connect to the machine | |
ping: | |
- name: Stop Tomcat | |
shell: ./shutdown.sh | |
args: | |
chdir: /opt/apache-tomcat-8.5.49/bin/ | |
become: true | |
become_user: tomcat | |
- name: Remove Tomcat | |
file: | |
path: /opt/apache-tomcat-8.5.49 | |
state: absent | |
- name: remove user "tomcat" | |
user: | |
name: tomcat | |
state: absent | |
- name: remove group "tomcat" | |
group: | |
name: tomcat | |
state: absent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment