feat: Begins setup-project role.

This commit is contained in:
2024-11-25 20:48:57 -05:00
parent e2d1360ab3
commit 3a4285a397
8 changed files with 71 additions and 57 deletions

View File

@@ -0,0 +1,11 @@
---
template_repo:
repo: "https://example.com/repo.git"
version: "main"
dest: "/path/to/clone"
output_dir: "{{ lookup('env', 'PWD') }}"
files_to_copy:
- "Report.md"
- "vars.yml"

View File

@@ -0,0 +1,14 @@
---
- name: Starting setup project.
ansible.builtin.debug:
msg: "Output dir: {{ output_dir }}"
tags:
- setup-project
- name: Ensure repo.
ansible.builtin.git:
repo: "{{ template_repo.repo }}"
dest: "{{ template_repo.dest }}"
version: "{{ template_repo.version }}"
tags:
- setup-project