Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Wintus/Ansible-WSL

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible-WSL

Provisioning your Windows by Ansible from WSL

concept

Getting Started

Prerequisites

First, follow the Ansible offical setup of Windows hosts: https://docs.ansible.com/ansible/latest/user_guide/windows.html

Next, get the WSL to run Ansible provisioning: https://www.microsoft.com/ja-jp/p/ubuntu/9nblggh4msv6 (This project only supports Ubuntu). After Ubuntu setup in WSL, install Ansible by apt: apt install ansible.

Clone the source:

git clone https://github.com/Wintus/Ansible-WSL
cd Ansible-WSL

Setup

Edit the group_vars/ and/or host_vars/ to setup connection. For details, see the guide:

Samples

Windows group

host_vars/win.yml

ansible_host: localhost
ansible_winrm_server_cert_validation: ignore

# May also be passed on the command-line via --user
ansible_user:

# May also be supplied at runtime with --ask-pass
ansible_password:

WSL group

host_vars/ubuntu.yml

ansible_host: localhost

# May also be passed on the command-line via --user
ansible_user:

# May also be supplied at runtime with --ask-pass
ansible_password:

About

Provisioning your Windows from inside of WSL by Ansible

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.