一、script模块
script模块:用于在远程机器上执行本地脚本。
- script模块的作用是将本地script传送到远程主机之后执行
- 给定的脚本将通过远程节点上的shell环境进行处理
- script模块在远程系统上不需要python的支持
https://docs.ansible.com/ansible/latest/modules/script_module.html#script-module
在manage01上创建脚本,通过ansible将脚本分发到被管理端
[root@manage01 ~]# cat ansible_test.sh
#!/bin/bash
#ansi...