Hello

On Thu, Jun 20, 2019 at 1:41 PM Udbhav <[email protected]> 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:

https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html#winrm-encryption

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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/45a3e22e-b1d9-42f5-9f23-ee9dccd18cbd%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/45a3e22e-b1d9-42f5-9f23-ee9dccd18cbd%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAA3McK-BHgU%2B5H-V-fydQMJci5WKpwWQh602BnyBmXWFg2YxHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to