pentesting-setup/playbook.yml

85 lines
2.0 KiB
YAML
Raw Normal View History

2025-01-05 21:23:26 +01:00
- name: Setup pentesting system
2025-01-05 21:38:57 +01:00
hosts: localhost
2025-01-05 21:23:26 +01:00
tasks:
- name: Package management
block:
- name: Update System
pacman: update_cache=true upgrade=true
- name: Install common tools
pacman:
pkg:
- neovim
- fakeroot
- yay
- kitty
- eza
- bat
- zoxide
- ttf-envycoder-nerd
- thefuck
- nmap
- john
- openvpn
- jre21-openjdk
- zaproxy
2025-01-05 21:26:29 +01:00
- zellij
2025-01-05 21:23:26 +01:00
- name: Install OpenVPN config
copy:
src: lab.ovpn
dest: /etc/openvpn/client/lab.conf
ignore_errors: true
notify: Enable OpenVPN service
2025-02-08 01:52:09 +01:00
- name: Set shell to zsh
user:
name: datalore
shell: /bin/zsh
2025-01-05 21:23:26 +01:00
become: true
2025-02-08 00:47:19 +01:00
- name: Install AUR packages
kewlfft.aur.aur:
name:
- ffuf-bin
- plymouth-theme-green-blocks-git
use: yay
2025-02-08 01:38:30 +01:00
- name: Create kitty directory
file:
path: ~/.config/kitty
state: directory
2025-01-05 21:23:26 +01:00
- name: Copy kitty config
copy:
src: kitty.conf
dest: ~/.config/kitty/kitty.conf
2025-02-08 01:41:10 +01:00
- name: Create nvim directory
2025-02-08 01:52:09 +01:00
file:
2025-02-08 01:41:10 +01:00
path: ~/.config/nvim
2025-02-08 01:52:09 +01:00
state: directory
2025-01-05 21:23:26 +01:00
- name: Copy nvim config
copy:
src: init.lua
dest: ~/.config/nvim/init.lua
- name: Copy .zshrc
copy:
src: zshrc
dest: ~/.zshrc
force: yes
2025-02-08 01:52:09 +01:00
- name: Create zellij directory
file:
path: ~/.config/zellij
state: directory
2025-01-05 21:26:29 +01:00
- name: Copy zellij config
copy:
src: config.kdl
dest: ~/.config/zellij/config.kdl
2025-01-05 21:23:26 +01:00
- name: Clone SecLists
git:
clone: true
depth: 1
2025-01-05 21:38:57 +01:00
dest: ~/SecLists
2025-01-05 21:23:26 +01:00
repo: https://github.com/danielmiessler/SecLists
2025-01-05 21:38:57 +01:00
handlers:
- name: Enable OpenVPN service
service: name=openvpn-client@lab enabled=true
become: true