aboutsummaryrefslogtreecommitdiff
path: root/roles/attackbox/tasks/github_repos.yaml
blob: 042ea6c60f8d631c32fd245f6d0fc0a7a32c64bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 }}"