55 lines
1.5 KiB
YAML
55 lines
1.5 KiB
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"
|
|
state: present
|
|
|
|
# - name: Wait for Firefox profile directory to be created
|
|
# shell: |
|
|
# until find /home/vagrant/.mozilla/firefox -maxdepth 1 -name "*.default-release" -print -quit | grep -q .; do
|
|
# sleep 1
|
|
# done
|
|
# changed_when: false
|
|
#
|
|
# - name: Get Firefox default profile path
|
|
# shell: |
|
|
# find /home/vagrant/.mozilla/firefox -maxdepth 1 -name "*.default-release" | head -n 1
|
|
# register: firefox_profile
|
|
# changed_when: false
|
|
#
|
|
# - name: Check if cert DB exists
|
|
# stat:
|
|
# path: "{{ firefox_profile.stdout }}/cert9.db"
|
|
# register: cert_db
|
|
#
|
|
# - name: Add mkcert root CA to Firefox
|
|
# command: >
|
|
# certutil -A -n "mkcert development CA" -t "C,,"
|
|
# -i /usr/local/share/ca-certificates/mkcert-rootCA.crt
|
|
# -d sql:{{ firefox_profile.stdout }}
|
|
# when: cert_db.stat.exists |