I'm setting up a Windows Server 2019 VM with Vagrant+Ansible.
- Host OS: Ubuntu 20.10
- Ansible: 2.9.9
- Vagrant: 2.2.9
My Vagrantfile:
Vagrant.configure("2") do |config|
config.vm.box = "StefanScherer/windows_2019"
config.vm.provision :ansible do |ansible|
ansible.playbook = "provisioners/ansible/ansible_playbook.yml"
ansible.config_file = "provisioners/ansible/ansible.cfg"
ansible.become_user = "Administrator"
ansible.raw_arguments = ["-e", "ansible_winrm_server_cert_validation=ignore"]
end
end
I get this error on vagrant up --provision
:
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'StefanScherer/windows_2019' version '2020.09.22' is up to date...
==> default: Running provisioner: ansible...
default: Running ansible-playbook...
PLAY [Jenkins node playbook]
***************************************************
TASK [Gathering Facts]
*********************************************************
Friday 29 January 2021 09:23:35 +0100 (0:00:00.023) 0:00:00.023 ********
fatal: [default]: UNREACHABLE! => {"changed": false, "msg": "ssl:
HTTPSConnectionPool(host='127.0.0.1', port=55985): Max retries exceeded with
url: /wsman (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines',
'ssl3_get_record', 'wrong version number')])")))", "unreachable": true}
PLAY RECAP
*********************************************************************
default : ok=0 changed=0 unreachable=1 failed=0
skipped=0 rescued=0 ignored=0
Friday 29 January 2021 09:23:35 +0100 (0:00:00.135) 0:00:00.158 ********
===============================================================================
Gathering Facts --------------------------------------------------------- 0.14s
Playbook run took 0 days, 0 hours, 0 minutes, 0 seconds
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
How do I fix this error? I don't particularly need SSL, this is a just test VM on a local machine.
question from:
https://stackoverflow.com/questions/65951104/vagrant-ansible-sslerror-bad-handshake-error-ssl-routines-ssl3-get-record-w 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…