摘要:
基于密码的连接 如果是第一次登陆,需要免ssh验证的话,可以设置: vim /etc/ansible/ansible.cfg host_key_checking = False cat /etc/ansible/hosts [all] 10.0.0.11 ansible_ssh_port=22 an 阅读全文
基于密码的连接 如果是第一次登陆,需要免ssh验证的话,可以设置: vim /etc/ansible/ansible.cfg host_key_checking = False cat /etc/ansible/hosts [all] 10.0.0.11 ansible_ssh_port=22 an 阅读全文
posted @ 2025-07-27 01:35
阿峰博客站
阅读(17)
评论(0)
推荐(0)
摘要:
主配置文件加载顺序 Ansible的主配置文件可以存放在任何位置,但配置文件有读取顺序 最先查找$ANSIBLE_CONFIG变量对应的位置和文件 其次查找当前目录下ansible.cfg 然后查找用户家目录下的.ansible.cfg 最后查找/etc/ansible/ansible.cfg(默认 阅读全文
主配置文件加载顺序 Ansible的主配置文件可以存放在任何位置,但配置文件有读取顺序 最先查找$ANSIBLE_CONFIG变量对应的位置和文件 其次查找当前目录下ansible.cfg 然后查找用户家目录下的.ansible.cfg 最后查找/etc/ansible/ansible.cfg(默认 阅读全文
posted @ 2025-07-27 01:30
阿峰博客站
阅读(26)
评论(0)
推荐(0)
摘要:
centos安装: wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo wget -O /etc/yum.repos.d/epel.repo https://mirrors.al 阅读全文
centos安装: wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo wget -O /etc/yum.repos.d/epel.repo https://mirrors.al 阅读全文
posted @ 2025-07-27 01:26
阿峰博客站
阅读(11)
评论(0)
推荐(0)

优化主机 # 1.设置主机名 hostname redis echo redis > /etc/hostname # 2.关闭防火墙和linux systemctl stop firewalld systemctl disable firewalld setenforce 0 sed -i 's#S
浙公网安备 33010602011771号