Giter Club home page Giter Club logo

ansible-wsl's People

Contributors

wintus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ansible-wsl's Issues

Fail to set up a HTTPS WinRM listener

Setup step
https://docs.ansible.com/ansible/latest/user_guide/windows_setup.html#setup-winrm-listener

Error

PS C:\WINDOWS\system32> winrm quickconfig -transport:https
WinRM サービスは、既にこのコンピューターで実行されています。
WSManFault
    Message
        ProviderFault
            WSManFault
                Message = このコンピューターには適切な証明書がないため、HTTPS 上に WinRM リスナーを作成できません。SSL  に使用するには、ホスト名に一致する CN を持ち、サーバー認証に適しており、有効期限内であり、失効しておらず、自己署名されたものでない証明書が必要です。

エラー番号:  -2144108267 0x80338115
このコンピューターには適切な証明書がないため、HTTPS 上に WinRM リスナーを作成できません。SSL に使用するには、ホスト名に 一致する CN を持ち、サーバー認証に適しており、有効期限内であり、失効しておらず、自己署名されたものでない証明書が必要です。

https://support.microsoft.com/ja-jp/help/2019527/how-to-configure-winrm-for-https

Solutions

or HTTP

still error

https://docs.ansible.com/ansible/latest/user_guide/windows_setup.html#common-winrm-issues

Winrs error:宛先のコンピューター (localhost:5986)  のサーバー証明書に次のエラーがあります:
SSL 証明書が不明の証明機関によって署名されています。
SSL 証明書にホスト名と一致しない共通名 (CN) が含まれています。

This is intended.
The final command succeeded.

i.e. skip it

Remove unnecessary role from Ubuntu

This play is removable:

Ansible-WSL/site.yml

Lines 2 to 5 in 991c18c

- hosts: ubuntu
roles:
- ubuntu
tags: linux

details

ref

https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html#synopsis

If Chocolatey is missing from the system, the module will install it.

Refactor Chocolaty task

extract to chocolaty.yml

and use as

 - name: self hosting chocolaty 
   import_tasks: chocolaty.yml
   var:
      packages:
        - name: chocolatey
        - name: chocolateygui

 - name: install softwares in the package list. 
   import_tasks: chocolaty.yml
   var:
      packages: "{{ chocolaty_packages }}" 

vEthernet is Public

causing error of WinRM WSMan setting

https://docs.ansible.com/ansible/latest/user_guide/windows_setup.html#winrm-service-options

PS C:\WINDOWS\system32> Set-Item -Path WSMan:\localhost\Service\AllowUnencrypted -Value false
Set-Item : このコンピューターのネットワーク接続の種類の 1 つが Public に設定されているため、WinRM ファイアウォール例外
は機能しません。 ネットワーク接続の種類を Domain または Private に変更して、やり直してください。
発生場所 行:1 文字:1
+ Set-Item -Path WSMan:\localhost\Service\AllowUnencrypted -Value false
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Set-Item], InvalidOperationException
    + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.SetItemCommand

also error:
winrm set winrm/config/service '@{AllowUnencrypted="true"}'

solutions

related #13

TODOs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.