pentesting-setup/playbook.yml
2025-01-05 21:38:57 +01:00

67 lines
1.6 KiB
YAML

- name: Setup pentesting system
hosts: localhost
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
- zellij
- name: Install OpenVPN config
copy:
src: lab.ovpn
dest: /etc/openvpn/client/lab.conf
ignore_errors: true
notify: Enable OpenVPN service
become: true
- name: Copy kitty config
copy:
src: kitty.conf
dest: ~/.config/kitty/kitty.conf
- name: Copy nvim config
copy:
src: init.lua
dest: ~/.config/nvim/init.lua
- name: Copy .zshrc
copy:
src: zshrc
dest: ~/.zshrc
force: yes
- name: Copy zellij config
copy:
src: config.kdl
dest: ~/.config/zellij/config.kdl
- name: Set shell to zsh
user:
name: datalore
shell: /bin/zsh
- name: Clone SecLists
git:
clone: true
depth: 1
dest: ~/SecLists
repo: https://github.com/danielmiessler/SecLists
handlers:
- name: Enable OpenVPN service
service: name=openvpn-client@lab enabled=true
become: true