liguangxin
liguangxin:~/blog$ source "ansible.sh"

liguangxin:~/blog$ printenv
CREATED_DATE = 2024-08-27
UPDATED_DATE = 2024-08-27
TAGS = python : ansible
CATEGORIES =

liguangxin:~/blog$ grep -lr $TAGS post
2024-08-27 ansible
ansible

ansible生成配置文件

1
2
3
4
5
6
ansible-config init --disabled > /etc/ansible/ansible.cfg
#forks = 5 # 默认并发数
#poll_interval = 15
#sudo_user = root # 默认sudo用户
#ask_sudo_pass = True # 每次执行是否询问sudo的ssh密码
#ask_pass = True # 每次执行是否询问ssh密码