1234567891011121314151617181920212223242526272829 |
- ---
- - name: Ensure lab_workdir exists
- ansible.builtin.file:
- path: "{{ lab_workdir }}"
- state: directory
- owner: student
- group: student
- mode: 0755
- - name: Clone the git repo(s) into lab_workdir
- ansible.builtin.git:
- repo: "{{ item.url }}"
- dest: "{{ lab_workdir }}/{{ item.path }}"
- clone: yes
- version: "{{ item.branch | default('main') }}"
- loop: "{{ lab_repos }}"
- ...
|