adding new files

This commit is contained in:
2025-06-20 21:46:44 +02:00
parent 46a517d1f3
commit a7c0018684
21 changed files with 960 additions and 0 deletions

View File

@ -0,0 +1,17 @@
- name: Backup config to git repo@nas
hosts: localhost
vars:
src_dirs:
- "/home/belar/.config/"
- "/etc"
dst_dir: "/home/belar/nas_belar/backup/hotaru/"
commit_msg: "Config backup {{ ansible_date_time.iso8601 }}"
tasks:
- name: Copy files to destination
copy:
src: "{{ item }}"
dest: "{{ dst_dir }}/{{ item | basename }}"
with_items:
- "{{ src_dirs }}"