Packer SSL

16 views
Skip to first unread message

Udbhav

unread,
Jun 20, 2019, 2:41:42 PM6/20/19
to Packer
I want to enable SSL for winrm communication between my hyper-V VM and local windows machine. Can anyone please point me to the right resource? I am mostly interested in using self signed certificate.

Thanks
Udbhav

Angel Rengifo Cancino

unread,
Jun 20, 2019, 2:58:26 PM6/20/19
to packe...@googlegroups.com
Hello

On Thu, Jun 20, 2019 at 1:41 PM Udbhav <udbhav....@gmail.com> wrote:
I want to enable SSL for winrm communication between my hyper-V VM and local windows machine. Can anyone please point me to the right resource? I am mostly interested in using self signed certificate.

First, enable WinRM with SSL by following these instructions:


Once you have done it, you can code your playbook like this:

- hosts: all
  vars:
    ansible_password: DontBeCurious
    ansible_connection: winrm
    ansible_winrm_server_cert_validation: ignore
    ansible_user: administrator
    ansible_port: 5986
  tasks:
    - name: Enable NTP service
      win_service:
        name: w32time
        state: started
        start_mode: auto
...
...


Thanks
Udbhav

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/45a3e22e-b1d9-42f5-9f23-ee9dccd18cbd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages