30 lines
718 B
YAML
30 lines
718 B
YAML
---
|
|
- hosts: all
|
|
become: true
|
|
vars:
|
|
container_count: 1
|
|
default_container_name: docker
|
|
default_container_image: hello-world
|
|
default_container_command: sleep 1
|
|
tasks:
|
|
# - name: Add Metasploit PPA
|
|
# apt_repository:
|
|
# repo: ppa:metasploit-official
|
|
# state: present
|
|
# update_cache: yes
|
|
|
|
- name: Install tools
|
|
apt:
|
|
pkg:
|
|
# - metasploit-framework
|
|
- curl
|
|
- nmap
|
|
- libnss3-tools
|
|
state: present
|
|
update_cache: yes
|
|
|
|
- name: Add sandbox hostnames to /etc/hosts
|
|
lineinfile:
|
|
path: /etc/hosts
|
|
line: "192.168.56.10 gitea.vm.local bitwarden.vm.local vuln.vm.local"
|
|
state: present |