diff options
author | heqnx <root@heqnx.com> | 2025-05-25 11:50:46 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-05-25 11:50:46 +0300 |
commit | 7c8ed923df3c02338dfbf826fd6fd9a23dac502e (patch) | |
tree | 929ee32e5a6f32e952bb8fcad33f704a371af9ff /old/attackbox/tasks/github_repos.yaml | |
parent | e905a6a60ceb43ef2bfa8f0f61c23630955caf1f (diff) | |
download | ansible-playbooks-7c8ed923df3c02338dfbf826fd6fd9a23dac502e.tar.gz ansible-playbooks-7c8ed923df3c02338dfbf826fd6fd9a23dac502e.zip |
moved unorganized playbooks into old folder
Diffstat (limited to 'old/attackbox/tasks/github_repos.yaml')
-rw-r--r-- | old/attackbox/tasks/github_repos.yaml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/old/attackbox/tasks/github_repos.yaml b/old/attackbox/tasks/github_repos.yaml new file mode 100644 index 0000000..042ea6c --- /dev/null +++ b/old/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 }}" |