ansible常用模块使用.pdfVIP

  • 4
  • 0
  • 约1.13千字
  • 约 1页
  • 2023-03-20 发布于江苏
  • 举报
1、重启远程主机的服务: eg: ansible remote -m service -a name=unbound state=restarted 2、复制内容到远程主机的文件中: eg: ansible remote -m copy -a content=JackieLee dest=/root/src_test.conf’ 3、将远程主机的文件复制到本地主机 eg : ansible remote -mfetch–a“src=/tmp/somefile dest=/tmp/fetched” 4 、用正则表达式匹配远程主机的文件内容,并对匹配到的一行内容做增删改操作

文档评论(0)

1亿VIP精品文档

相关文档