ansible批量复制文件到服务器

ansible -i /etc/ansible/hosts.test test -m copy -a "src=/tmp/test dest=/usr/bin/ mode=755 owner=root group=root"

批量解压:

ansible -i /etc/ansible/hosts.test test -m unarchive -a "src=/opt/src/os-first-step.tar dest=/opt/src copy=no"

相关文章:

  • 2021-12-02
  • 2021-07-14
  • 2021-07-07
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2021-06-23
猜你喜欢
  • 2021-04-02
  • 2022-12-23
  • 2021-05-04
  • 2022-02-26
  • 2021-09-04
相关资源
相似解决方案