cd install-script-refactor/kafka/ansible
vim host_vars/hosts
[all:vars]
ansible_user=developer /默认ssh 连接用户
#ansible_passwd=7paExIyZ
#ansible_become=yes //允许升级权限,相当于ansible_sudo或ansible_su
#become_user=root//允许设置设置特殊权限的用户,相当于ansible_sudo_user或ansible_su_user
#become_method=sudo//允许设置特殊权限的方法
#ansible_sudo_user=hudson //允许设置您成为通过特权升级的用户
ansible_ssh_private_key_file=/home/developer/.ssh/authorized_keys//连接时使用的私钥文件
相关文章
- 03-24ansible-host file
- 03-24file xxx from install of xxx conflicts with file from xxx
- 03-24rsyslogd: error during parsing file /etc/rsyslog.conf, on or before line 55: warnings occured in fil
- 03-24Github:failed to add file / to index
- 03-24File.separator
- 03-24inventory file 与hosts patterns (ansible 机器清单 与 主机匹配模式)
- 03-24Dx bad class file magic (cafebabe) or version (0033.0000) 导致 NoClassDefFoundError 的问题
- 03-2448.Warning: (vsim-3534) [FOFIR] - Failed to open file "sp_rom_8x256_sr.mif" for reading.
- 03-24SyntaxError: Non-ASCII character '\xe4' in file t.py on line 3, but no encoding declared
- 03-24", line 1, in
NameError: name 'f' is not defined">Python2 错误记录1File " ", line 1, in NameError: name 'f' is not defined