aboutsummaryrefslogtreecommitdiff
path: root/attackbox/tasks/github_repos.yaml
diff options
context:
space:
mode:
authorheqnx <root@heqnx.com>2025-05-23 13:37:32 +0300
committerheqnx <root@heqnx.com>2025-05-23 13:37:32 +0300
commit356adb1e7924274a25c3b1ec48cc2a6d07f56cc4 (patch)
treecb23e4990a9a118319c8636f1ac6c8714cf5ee0f /attackbox/tasks/github_repos.yaml
parent72756cce5ea85f43c7fa80f1f128bbbe7f1a4309 (diff)
downloadansible-playbooks-356adb1e7924274a25c3b1ec48cc2a6d07f56cc4.tar.gz
ansible-playbooks-356adb1e7924274a25c3b1ec48cc2a6d07f56cc4.zip
added attackbox ansible setup
Diffstat (limited to 'attackbox/tasks/github_repos.yaml')
-rw-r--r--attackbox/tasks/github_repos.yaml15
1 files changed, 15 insertions, 0 deletions
diff --git a/attackbox/tasks/github_repos.yaml b/attackbox/tasks/github_repos.yaml
new file mode 100644
index 0000000..042ea6c
--- /dev/null
+++ b/attackbox/tasks/github_repos.yaml
@@ -0,0 +1,15 @@
+- name: ensure /opt/tools exists
+ ansible.builtin.file:
+ path: /opt/tools
+ state: directory
+ owner: root
+ group: root
+ mode: '0755'
+
+- name: clone github repos into /opt/tools
+ ansible.builtin.git:
+ repo: "{{ item }}"
+ dest: "/opt/tools/{{ item | basename | regex_replace('\\.git$', '') }}"
+ update: yes
+ force: yes
+ loop: "{{ github_repos }}"