Skip to content

Commit

Permalink
WinRM improvements
Browse files Browse the repository at this point in the history
- Use the built-in Packer/Ansible/WinRM integration
- Use WinRM over HTTP, because Windows 7 does not support TLSv1.2 out of the box, while Ubuntu Bionic requires TLSv1.2
  • Loading branch information
qmfrederik committed Jul 2, 2020
1 parent a5a7c3d commit b87f3d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 230 deletions.
218 changes: 0 additions & 218 deletions ansible/connection_plugins/packer.py

This file was deleted.

18 changes: 6 additions & 12 deletions windows_7.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,9 @@
"type": "windows-restart"
},
{
"extra_arguments": [
"--extra-vars",
"ansible_shell_type=powershell ansible_shell_executable=None",
"--connection",
"packer"
],
"user": "vagrant",
"use_proxy": false,
"extra_arguments": ["-e", "ansible_winrm_server_cert_validation=ignore", "-e", "ansible_winrm_scheme=http"],
"playbook_file": "./ansible/windows_update_security_updates.yml",
"type": "ansible"
},
Expand All @@ -211,12 +208,9 @@
"type": "windows-restart"
},
{
"extra_arguments": [
"--extra-vars",
"ansible_shell_type=powershell ansible_shell_executable=None",
"--connection",
"packer"
],
"user": "vagrant",
"use_proxy": false,
"extra_arguments": ["-e", "ansible_winrm_server_cert_validation=ignore", "-e", "ansible_winrm_scheme=http"],
"playbook_file": "./ansible/windows_update.yml",
"type": "ansible"
},
Expand Down

0 comments on commit b87f3d7

Please sign in to comment.