博客
关于我
ansible测试连接主机
阅读量:135 次
发布时间:2019-02-26

本文共 246 字,大约阅读时间需要 1 分钟。

docker exec -it ansible-api bash

source /opt/py3/bin/activate

mkdir /etc/ansible

touch /etc/ansible/hosts

在/etc/ansible/hosts中添加:

ansible_ssh_user=用户名 ansible_ssh_pass=密码

例如:

ansible_ssh_user=makai ansible_ssh_pass=aaaaaa

ansible -m ping all -vvv

转载地址:http://woak.baihongyu.com/

你可能感兴趣的文章
oc57--Category 分类
查看>>
occi库在oracle官网的下载针对vs2008
查看>>
OceanBase 安装使用详细说明
查看>>
OceanBase详解及如何通过MySQL的lib库进行连接
查看>>
OCP题库升级,新版的052考试题及答案整理-18
查看>>
OCR使用总结
查看>>
OfficeWeb365 SaveDraw 文件上传漏洞复现
查看>>
office中的所有content type
查看>>
office之Excel 你会用 Ctrl + E 吗?
查看>>
Office办公软件里的“开发工具”选项卡-ChatGPT4o作答
查看>>
Offline Installation the .NET Framework 3.5 on Windows 8
查看>>
OGG初始化之使用数据库实用程序加载数据
查看>>
ogg参数解析
查看>>
ognl详解
查看>>
Ogre 插件系统
查看>>
Oil Deposits
查看>>
oj2894(贝尔曼福特模板)
查看>>
OJ4TH|Let's play a game
查看>>
OJ中处理超大数据的方法
查看>>
OJ中常见的一种presentation error解决方法
查看>>