
Ansible
程序菇
这个作者很懒,什么都没留下…
展开
-
ansible ssh免密登录
在使用ansible中,需要了解ssh的免密登录。ssh-keygen -t rsa一直回车,生成默认秘钥。然后执行下列命令,讲秘钥传至目标ip。ssh-copy-id -i /root/.ssh/id_rsa.pub root@193.xxx.xxx.xxx然后输入密码,至此,免密登录完成。测试ansible 操作,不再需要输入密码...原创 2019-01-08 20:28:49 · 835 阅读 · 1 评论 -
Ansible:hosts 配置ssh连接密码
[as-ssss]100.100.10.100[as-ssss:vars]ansible_ssh_pass='password'原创 2019-01-14 20:25:56 · 4185 阅读 · 0 评论