Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Wintus/Ansible-WSL
Provisioning your Windows from inside of WSL by Ansible
https://github.com/Wintus/Ansible-WSL
ansible chocolatey ubuntu wsl
Last synced: 13 days ago
JSON representation
Provisioning your Windows from inside of WSL by Ansible
- Host: GitHub
- URL: https://github.com/Wintus/Ansible-WSL
- Owner: Wintus
- License: mit
- Created: 2017-11-18T20:00:45.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-06T13:12:53.000Z (over 3 years ago)
- Last Synced: 2024-08-01T05:23:35.685Z (3 months ago)
- Topics: ansible, chocolatey, ubuntu, wsl
- Homepage:
- Size: 43.9 KB
- Stars: 62
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- Windows-Terminal-Guide - Ansible-WSL
- jimsghstars - Wintus/Ansible-WSL - Provisioning your Windows from inside of WSL by Ansible (Others)
README
# Ansible-WSL
Provisioning your Windows by Ansible from WSL![concept](./docs/concept.png "concept")
## Getting Started
### Prerequisites
First, follow the Ansible offical setup of Windows hosts:
https://docs.ansible.com/ansible/latest/user_guide/windows.htmlNext, 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:
```bash
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:
- Windows: https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html#inventory-options
- Ubuntu: refer `localhost`, `connection=local`### Samples
Windows group
`host_vars/win.yml`
```yaml
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`
```yaml
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:
```