6.13 Tomcat
最后更新于:2022-04-02 07:45:59
## Tomcat
```
# 支持8.5.65版本
# 部署tocmat
ansible-playbook -i hosts/tomcat_hosts tomcat/tomcat.yml -e '{"tomcat_version":"8.5.65"}'
# 启动tomcat
ansible-playbook -i hosts/tomcat_hosts tomcat/tomcat.yml -e '{"tomcat_version":"8.5.65"}' --tags start_tomcat
# 清理Tomcat
ansible-playbook -i hosts/tomcat_hosts tomcat/tomcat.yml -e '{"tomcat_version":"8.5.65"}' --tags clean_tomcat
# 清理Tomcat是数据(webapps目录)
ansible-playbook -i hosts/tomcat_hosts tomcat/tomcat.yml -e '{"tomcat_version":"8.5.65"}' --tags clean_tomcat_data
```
';