aboutsummaryrefslogtreecommitdiff
path: root/roles/attackbox/tasks/github_repos.yaml
blob: e98252e4dbdd24d656ff2aba40242c155e77e63f (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: true
    force: true
  loop: "{{ github_repos }}"