摘要: 1、python3中ansible安装模块 在Python3中安装模块需要带上python版本、需要安装模块的版本,默认是安装最新的版本 python3 -m pip install Django==1.10.7 python3 -m pip install ansible 2、ansible切换目录并且创建文件 1.1、使用shell模块操作 [root@master ~]# ... 阅读全文
posted @ 2019-01-18 21:24 effortsing 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 1、先看下整体目录架构 [root@bogon ~]# cd /etc/ansible/ [root@bogon ansible]# tree . ├── ansible.cfg ├── group_vars │ └── all ├── hosts ├── roles │ └── webservs │ ├── handlers │ │ └── main.ym... 阅读全文
posted @ 2019-01-18 10:42 effortsing 阅读(791) 评论(0) 推荐(0) 编辑