Inventory 常用內(nèi)置參數(shù)
ansible_ssh_host: 定義host ssh地址 ansible_ssh_host=10.132.42.1.117
ansible_ssh_port: 定義hots ssh端口 snsible_ssh_port=3009
ansible_ssh_user: 定義hosts ssh 認(rèn)證用戶 ansible_ssh_user=michael
ansible_ssh_pass: 定義hosts ssh認(rèn)證密碼 ansible_ssh_pass=root123
ansible_duso: 定義hosts sudo的用戶 ansible_sudo=michael
ansible_sdo_pass: 定義hosts sudo密碼 ansible_sudo_pass="12345"
ansible_sudo_exe: 定義hosts duso 路徑 ansible_sudo_exe=/usr/bin/sudo密碼
ansible_ssh_private_key_file: 定義hosts私鑰 ansible_ssh_private_key_file=/root/key
ansible_shell_type: 定義hosts shell類型 ansible_shell_type=bash
ansible_python_interpreter: 定義hosts任務(wù)執(zhí)行python的路徑 ansible_python_interpreter=/usr/bin/python2.6
ansible_interpreter: 定義hosts其他語言解析器路徑 ansible_interpreter=/usr/bin/ruby