ansible部署tomcat

血红的双手。 提交于 2020-01-22 22:14:09

copy不过去在6的机器上安装jdk.rpm
ansible webservers -m shell -a ‘rpm -ivh jdk-8u20-linux-x64.rpm’
ansible webservers -m shell -a ‘java -version’
ansible webservers -m file -a ‘path=/opt/tomcat state=directory’
ansible webservers -m unarchive -a ‘src=apache-tomcat-8.5.35.tar.gz dest=/opt/tomcat/’
ansible webservers -m shell -a ‘nohup /opt/tomcat/apache-tomcat-8.5.35/bin/startup.sh &’
ansible webservers -m shell -a ‘ss -lnt|grep 8080’
docker inspect web1 查看ip地址

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!