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[远程模式])
相关推荐
biubiubiu070610 小时前
Ansible自动化
运维·自动化·ansible
秋4271 天前
ansible配置与模块介绍
ansible
秋4271 天前
ansible剧本
linux·服务器·ansible
码农101号2 天前
Ansible - Role介绍 和 使用playbook部署wordPress
android·ansible
2301_800050994 天前
Ansible
运维·ansible
阎*水6 天前
Ansible 核心要点总结
ansible
小安运维日记6 天前
RHCA - DO374 | Day09:自定义内容集和执行环境
linux·运维·服务器·系统架构·ansible·改行学it
-dcr6 天前
48.Ansible自动化
自动化·ansible·dubbo
神秘面具男037 天前
Ansible Playbook 编写与运行
服务器·网络·ansible
随风语7 天前
ansible
运维·自动化·ansible