ansible

Ansible

ansible是一个开源的自动化运维工具,用于配置管理,应用部署,任务执行和多节点协调
自动批量管理系列-基础
一,核心:linux 常用的批量管理工具
1,秘钥认证部署流程
2,流程
1)先掌握手动部署
2)把过程实现自动化
二,自动化批量管理-基础

2.1 OpenSSH 远程连接基础

2.1.1 服务端

1)/etc/ssh/sshd_config
2)端口
3)是否允许 root y远程登录
4)dns 反向解析

2.1.2 客户端

1)ssh -p 指定端口
2)scp -r 递归同步复制 -P 指定端口号

2.2 OpenSSH 手动秘钥认证

2.2.1 创建秘钥 ssh-keygen -t rsa # 默认是 rsa
2.2.2 分发秘钥 ssh-copy-id -i 指定公钥( 名称和位置 )

2.3 OpenSSH 秘钥认证,一键(自动) cat .ssh/id_rsa

2.3.1 提供密码 sshpass -p 密码 (scp,ssh,rsync[远程模式])
相关推荐
遇见火星13 天前
如何使用Ansible一键部署MinIO集群?
ansible
粥周粥13 天前
ANSIBLE
ansible
码农101号13 天前
Linux中ansible模块补充和playbook讲解
linux·运维·ansible
码农101号13 天前
Linux的Ansible软件基础使用讲解和ssh远程连接
ansible
烟雨书信14 天前
ANSIBLE运维自动化管理端部署
运维·自动化·ansible
碎碎-li14 天前
ANSIBLE(运维自动化)
运维·自动化·ansible
@donshu@17 天前
Linux运维-ansible-python开发-获取inventroy信息
linux·运维·ansible
Kendra91920 天前
Ansible
ansible
꧁༺朝花夕逝༻꧂23 天前
Ansible小试牛刀
ansible
꧁༺朝花夕逝༻꧂23 天前
Ansible+Zabbix-agent2快速实现对多主机监控
运维·ansible