2022-07-26 14:50:50 +00:00
|
|
|
- name: Create folder structure(s)
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
loop:
|
2022-07-31 16:17:13 +00:00
|
|
|
- /opt/metacluster/git-repositories/gitops
|
2022-07-26 14:50:50 +00:00
|
|
|
- /opt/workloadcluster/node-templates
|
|
|
|
|
2022-07-31 16:17:13 +00:00
|
|
|
- name: Clone git repository
|
|
|
|
ansible.builtin.git:
|
|
|
|
repo: "{{ platform.gitops.repository.uri }}"
|
|
|
|
version: "{{ platform.gitops.repository.revision }}"
|
|
|
|
dest: /opt/metacluster/git-repositories/gitops
|
|
|
|
|
|
|
|
- name: Download node-template images
|
2022-07-26 14:50:50 +00:00
|
|
|
ansible.builtin.uri:
|
|
|
|
url: "{{ item.url }}"
|
2022-08-04 06:55:50 +00:00
|
|
|
dest: /opt/workloadcluster/node-templates/{{ downstream.node_templates.prefix }}{{ item.name }}
|
|
|
|
loop: "{{ downstream.node_templates.images }}"
|
2022-07-26 14:50:50 +00:00
|
|
|
loop_control:
|
2022-08-04 06:55:50 +00:00
|
|
|
label: "{{ downstream.node_templates.prefix }}{{ item.name }}"
|