ansible-debops-infrastructure

DebOps and Ansible scripts to manage my infrastructure
git clone git://git.erethon.com/ansible-debops-infrastructure
Log | Files | Refs

commit 6988bec9b0945882cca6c15329572192e57b26b5
parent b20cf897938d92f7ee06e6cf022a0b96acf0233f
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Mon, 17 Oct 2022 01:58:34 +0300

redteam: Init Ansible role for red teaming infra

Diffstat:
ansible/inventory/group_vars/redteam/docker.yml | 3+++
ansible/inventory/group_vars/redteam/resources.yml | 7+++++++
ansible/roles/redteam/tasks/main.yml | 7+++++++
3 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/ansible/inventory/group_vars/redteam/docker.yml b/ansible/inventory/group_vars/redteam/docker.yml @@ -0,0 +1,3 @@ +--- + +redteam__docker_images: ['projectdiscovery/subfinder', 'projectdiscovery/nuclei'] diff --git a/ansible/inventory/group_vars/redteam/resources.yml b/ansible/inventory/group_vars/redteam/resources.yml @@ -0,0 +1,7 @@ +--- + +resources__group_files: + - dest: '/home/dgrig/.config/subfinder/provider-config.yaml' + content: | + shodan: + - {{ lookup("password", secret + "/credentials/redteam/subfinder/shodan") }} diff --git a/ansible/roles/redteam/tasks/main.yml b/ansible/roles/redteam/tasks/main.yml @@ -0,0 +1,7 @@ +--- + +- name: Pull docker scanning images + community.docker.docker_image: + name: "{{ item }}" + source: pull + with_items: "{{ redteam__docker_images }}"