feat: Initial commit

This commit is contained in:
2024-11-25 17:06:32 -05:00
commit e2d1360ab3
19 changed files with 686 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
---
# Check if a file exists at the destination already, copy it if not.
- name: "Check if {{ destination | basename }} exists."
ansible.builtin.stat:
path: "{{ destination }}"
register: filestat
tags:
- always
- name: "Copy {{ source }} file to {{ destination }}."
ansible.builtin.copy:
src: "{{ source }}"
dest: "{{ destination }}"
mode: "{{ mode | default('0600') }}"
when: not filestat.stat.exists
tags:
- always