Skip to content

Ansible playbooks for web development on Kali Linux on WSL

Notifications You must be signed in to change notification settings

weimeng/ansible-wsl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible playbooks for Kali Linux on WSL

Table of Contents

Overview

These playbooks were written to quickly set up Kali Linux running on Windows Subsystem for Linux.

Playbooks

To run a playbook:

ansible-playbook -i hosts playbook.yml

List of available playbooks:

  • setup.yml: Initial setup. Installs Z Shell with Oh My Zsh and sets up my dotfiles from a Git repository.

  • dev-rails.yml: Tools for Rails dev.

First-time setup

First, upgrade system packages.

sudo apt-get update
sudo apt-get upgrade

For convenience, let’s remove the need for a sudo password.

sudo visudo

Then add username ALL=(ALL) NOPASSWD: ALL to the bottom of the file. Now you can sudo without a password!

Next, install and upgrade pip (Python package manager):

sudo apt-get install python3-pip
sudo pip3 install --upgrade pip

Now, install Ansible using pip:

sudo pip install ansible

Next, install SSH and generate your SSH keys

sudo apt-get install ssh
ssh-keygen -t rsa -b 4096 -C "username@host"

Finally, clone this repository and run the initial setup playbook.

git clone git@github.com:weimeng/ansible-ubuntu-wsl.git
cd ansible-ubuntu-wsl
ansible-playbook -i hosts setup.yml

About

Ansible playbooks for web development on Kali Linux on WSL

Topics

Resources

Stars

Watchers

Forks