Skip to content

Commit bdd7097

Browse files
committed
Add basic playbook, hosts, and cfg
0 parents  commit bdd7097

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Setup
2+
Setting up Ubuntu on WSL2 with ansible
3+
4+
## Quick Start
5+
6+
```
7+
sudo sh bootstrap.sh
8+
ansible-playbook -K playbook.yaml
9+
``

ansible.cfg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[defaults]
2+
retry_files_enabled = False
3+
inventory = hosts
4+
ask_become_pass = True

bootstrap.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apt update
2+
apt upgrade -y
3+
4+
apt install ansible aptitude -y

hosts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
wsl ansible_connection=local

playbook.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
- name: Update and Install packages
2+
hosts: wsl
3+
become: true
4+
tasks:
5+
- name: update package list
6+
package:
7+
update_cache: yes
8+
9+
- name: upgrade all packages
10+
package:
11+
name: "*"
12+
state: latest

0 commit comments

Comments
 (0)