Skip to content

Instantly share code, notes, and snippets.

View sathishkumarpkd's full-sized avatar

sathishkumarpkd

View GitHub Profile
---
- hosts: webservers
vars:
- http_port: 8080
- tomcat_version: 8.5.53
tasks:
- name: add group "tomcat"
group: name=tomcat
---
- 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/