ansible 记录

ansible.cfg

[defaults]

# some basic default values...
#inventory      = /etc/ansible/hosts
#library        = /usr/share/my_modules/
#remote_tmp     = $HOME/.ansible/tmp
#local_tmp      = $HOME/.ansible/tmp
#forks          = 5
#poll_interval  = 15
#sudo_user      = root
#ask_sudo_pass = True
#ask_pass      = True
#transport      = smart
#remote_port    = 22
#module_lang    = C
#module_set_locale = True

demo conf

[master]
13.114.16.212

[bootstrap]
3.112.243.131

[public]
3.112.130.212

[private]
3.112.252.175

[abc:children]
master
bootstrap
public
private

[abc:vars]
ansible_ssh_user=root
#ansible_ssh_pass="123456"
#ansible_ssh_port=22
ansible_ssh_private_key_file=/Users/15b883/keys/sshserver

相关推荐