ansible问题解决ansible Data could not be sent to remote host \"192.168.100.71\
# cat ansible.cfghost_key_checking = False
roles_path = ./roles
display_skipped_hosts = False
# Enable timing information
callback_whitelist = profile_roles,timer, profile_tasks
deprecation_warnings=False
strategy_plugins =~/.ansible/plugins/mitogen-0.3.1/ansible_mitogen/plugins/strategy/
#strategy = mitogen_linear
#fact info config
gathering = smart
fact_caching_connection = /tmp/facts_cache
fact_caching = jsonfile
# The timeout is defined in seconds
# This is 2 hours
fact_caching_timeout = 7200
forks = 2
)
# Adding PreferredAuthentications=publickey to the ssh_args line
#ssh_args = -o ControlMaster=auto -o ControlPersist=18000 -o PreferredAuthentications=publickey 注释掉这行,windows可以打开。
pipelining = True
配置windows 的host信息:
# cat host
192.168.100.70
ansible_ssh_user=administrator
ansible_ssh_pass="jdjk@redhat2022"
ansible_ssh_port=5985
ansible_connection="winrm"
ansible_winrm_server_cert_validation=ignore
ansible_winrm_scheme=http
#line_no="100"
#remote_file="D:\\server\\PisServer\\log\\PisServer.exe20220826log.txt"
#remote_host="192.168.100.70"
页:
[1]