This Ansible playbook automates the setup and configuration of Linux and WSL (Windows Subsystem for Linux) for development purposes.
To use this playbook, follow the steps below:
-
Clone the repository:
git clone https://github.com/maheshrijal/linux-dev-playbook.git
-
Change into the project directory:
cd linux-dev-playbook
-
Run the playbook:
ansible-playbook local.yml -K
To run the playbook directly on a remote machine, you can use the ansible-pull command
. Variables from vars/main.yml will be applied by default.
ansible-pull -U https://github.com/maheshrijal/linux-dev-playbook.git -K
ansible-pull
must be present in path for this to work. All ansible binaries can be install with this shell script.
The playbook installs the following tools with package manager: curl, wget, unzip, vim, python3, python3-pip, htop, build-essential, lsof, tar, jq, git, tree, bind9-dnsutils, tmux, gpg
The following tools are also installed:
- AWS CLI V2: Latest version of the AWS Command Line Interface.
- Terraform: Latest version of the Terraform
- Go: Latest version of the Go programming language.
- NodeJS 20.x: Node.js JavaScript runtime with npm (version can be changed in
vars/main.yml
).
The playbook automates the following SSH key setup tasks:
- Generates an SSH key pair.
- Adds the private key to the ssh-agent for secure key-based authentication.
- Outputs the public key to the console for easy copying.
Contributions are welcome! If you have any suggestions or improvements for this playbook, please feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.