Initial commit

This commit is contained in:
Pin
2022-04-20 22:57:21 -04:00
commit c80371138a
13 changed files with 279 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
---
- name: Generate DVWA Network
community.docker.docker_network:
name: dvwa-net
- name: Pull DVWA Network Information
community.docker.docker_network_info:
name: dvwa-net
register: docker_network_stdout
- set_fact:
docker_network_base: '{{ docker_network_stdout.network.IPAM.Config[0].Subnet | regex_replace("^(.*)\.[0-9]{1,3}/[0-9]{2}$", "\1") }}'
docker_network_prefix: '{{ docker_network_stdout.network.IPAM.Config[0].Subnet | regex_replace("^.*\.[0-9]{1,3}/([0-9]{2})$", "\1") }}'
...