This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-machine-setup/README.md

40 lines
994 B
Markdown
Raw Permalink Normal View History

## Invocation
```bash
export GITHUB_ACCESS_TOKEN=xxxxxxxxx
ansible-playbook --inventory inventory.yaml wsl-debian.yaml
```
## Arch Linux
Install aur collection:
```bash
ansible-galaxy collection install kewlfft.aur
```
Run
````bash
ansible-playbook --ask-become-pass --inventory inventory.yaml arch.yaml
```
2020-05-31 14:17:35 +00:00
## WSL Debian setup
cmd.exe:
2020-05-31 15:35:25 +00:00
```bat
wsl.exe --unregister Debian
Debian.exe install --root
````
2020-05-31 14:17:35 +00:00
root@debian:
2020-05-31 15:35:25 +00:00
```bash
apt-get update
apt-get -y install openssh-server python3
service ssh start
ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa -q
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmgEJRfpPRxQvzuCuEuDwarjzXaebBgbDsSNDZwm6EfJ2Arq15oYkGCB4oK45e2rfT8kaumpZ+7NteCRCJsrc3Cv/ivMkIekSLNuGAKe1bwM+QLraz2RLuCvH42AY+i7Tcg3LYihJgBw77/lseXstZ5RqkpxDCK2sSd/1qE1vYLTtXnAPwibQP/MWE7WPbHqjcBWSSe+XKl2b6sGiTA3H3KABIgHB6FSCbLmhqVMaDzwufkWhs/oeQnc6Kt7C8GA4x1DhAJmmZ237r4h/pu02KHpyL2OI2Z1sziBWNob/+WD0v/3jyzxaWcDWsOkEE1BE73osRbFU0W3sBnrGY8f7D mandl@DESKTOP-IH85M40" >> ~/.ssh/authorized_keys
```