远程拷贝
ansible web-server -m copy -a "dest=/tmp/Hello.class src=/opt/Hello.class owner=root group=root mode=0644"
远程执行命令
ansible web-server -m command -a "rm -rf /tmp/Hello.java"
远程目录文件信息查看
ansible web-server -m command -a "ls -al /tmp/CentOS6-Base-163.repo"

相关文章:

  • 2019-01-25
  • 2021-06-06
  • 2021-07-20
  • 2020-10-19
  • 2021-10-24
  • 2021-09-21
  • 2021-11-05
  • 2021-11-23
猜你喜欢
  • 2021-08-06
  • 2021-04-04
  • 2021-06-11
  • 2018-05-26
  • 2019-12-03
  • 2021-09-18
  • 2021-11-12
  • 2020-05-19
相关资源
相似解决方案