-
Notifications
You must be signed in to change notification settings - Fork 0
/
pentest.yml.txt
34 lines (30 loc) · 3.83 KB
/
pentest.yml.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
- name: Config Web VM with Docker
hosts: webservers
become: true
tasks:
- name: docker.io
apt:
force_apt_get: yes
name: docker.io
state: present
- name: Install pip
apt:
force_apt_get: yes
name: python-pip
state: present
- name: Install Docker python module
pip:
name: docker
state: present
- name: download and launch a docker web container
docker_container:
name: dvwa
image: cyberxsecurity/dvwa
state: started
published_ports: 80:80
- name: Config elk VM with Docker
hosts: elkservers
remote_user: elk
become: true
tasks: