From 6247cf5c8ba9a68e84662adfed2b36a028e4c417 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sat, 18 Jan 2025 18:16:17 +0100 Subject: [PATCH] archive role --- .../mgrote_rsync/defaults/main.yml | 0 .../mgrote_rsync/handlers/main.yml | 0 .../mgrote_rsync/tasks/destination.yml | 0 .../mgrote_rsync/tasks/main.yml | 0 .../mgrote_rsync/tasks/source.yml | 0 .../mgrote_rsync/tasks/user.yml | 0 .../mgrote_rsync/templates/private_key.j2 | 0 .../templates/rsync_mirror.service.j2 | 0 .../mgrote_rsync/templates/rsync_mirror.sh.j2 | 0 .../templates/rsync_mirror.timer.j2 | 0 .../templates/rsync_mirror_log.sh.j2 | 0 .../templates/rsync_mirror_mail.service.j2 | 0 host_vars/pbs.mgrote.net.yml | 3 --- host_vars/pve5.mgrote.net.yml | 27 ------------------- playbooks/3_service/pbs.yml | 2 -- playbooks/3_service/pve.yml | 2 -- 16 files changed, 34 deletions(-) rename {roles => friedhof}/mgrote_rsync/defaults/main.yml (100%) rename {roles => friedhof}/mgrote_rsync/handlers/main.yml (100%) rename {roles => friedhof}/mgrote_rsync/tasks/destination.yml (100%) rename {roles => friedhof}/mgrote_rsync/tasks/main.yml (100%) rename {roles => friedhof}/mgrote_rsync/tasks/source.yml (100%) rename {roles => friedhof}/mgrote_rsync/tasks/user.yml (100%) rename {roles => friedhof}/mgrote_rsync/templates/private_key.j2 (100%) rename {roles => friedhof}/mgrote_rsync/templates/rsync_mirror.service.j2 (100%) rename {roles => friedhof}/mgrote_rsync/templates/rsync_mirror.sh.j2 (100%) rename {roles => friedhof}/mgrote_rsync/templates/rsync_mirror.timer.j2 (100%) rename {roles => friedhof}/mgrote_rsync/templates/rsync_mirror_log.sh.j2 (100%) rename {roles => friedhof}/mgrote_rsync/templates/rsync_mirror_mail.service.j2 (100%) diff --git a/roles/mgrote_rsync/defaults/main.yml b/friedhof/mgrote_rsync/defaults/main.yml similarity index 100% rename from roles/mgrote_rsync/defaults/main.yml rename to friedhof/mgrote_rsync/defaults/main.yml diff --git a/roles/mgrote_rsync/handlers/main.yml b/friedhof/mgrote_rsync/handlers/main.yml similarity index 100% rename from roles/mgrote_rsync/handlers/main.yml rename to friedhof/mgrote_rsync/handlers/main.yml diff --git a/roles/mgrote_rsync/tasks/destination.yml b/friedhof/mgrote_rsync/tasks/destination.yml similarity index 100% rename from roles/mgrote_rsync/tasks/destination.yml rename to friedhof/mgrote_rsync/tasks/destination.yml diff --git a/roles/mgrote_rsync/tasks/main.yml b/friedhof/mgrote_rsync/tasks/main.yml similarity index 100% rename from roles/mgrote_rsync/tasks/main.yml rename to friedhof/mgrote_rsync/tasks/main.yml diff --git a/roles/mgrote_rsync/tasks/source.yml b/friedhof/mgrote_rsync/tasks/source.yml similarity index 100% rename from roles/mgrote_rsync/tasks/source.yml rename to friedhof/mgrote_rsync/tasks/source.yml diff --git a/roles/mgrote_rsync/tasks/user.yml b/friedhof/mgrote_rsync/tasks/user.yml similarity index 100% rename from roles/mgrote_rsync/tasks/user.yml rename to friedhof/mgrote_rsync/tasks/user.yml diff --git a/roles/mgrote_rsync/templates/private_key.j2 b/friedhof/mgrote_rsync/templates/private_key.j2 similarity index 100% rename from roles/mgrote_rsync/templates/private_key.j2 rename to friedhof/mgrote_rsync/templates/private_key.j2 diff --git a/roles/mgrote_rsync/templates/rsync_mirror.service.j2 b/friedhof/mgrote_rsync/templates/rsync_mirror.service.j2 similarity index 100% rename from roles/mgrote_rsync/templates/rsync_mirror.service.j2 rename to friedhof/mgrote_rsync/templates/rsync_mirror.service.j2 diff --git a/roles/mgrote_rsync/templates/rsync_mirror.sh.j2 b/friedhof/mgrote_rsync/templates/rsync_mirror.sh.j2 similarity index 100% rename from roles/mgrote_rsync/templates/rsync_mirror.sh.j2 rename to friedhof/mgrote_rsync/templates/rsync_mirror.sh.j2 diff --git a/roles/mgrote_rsync/templates/rsync_mirror.timer.j2 b/friedhof/mgrote_rsync/templates/rsync_mirror.timer.j2 similarity index 100% rename from roles/mgrote_rsync/templates/rsync_mirror.timer.j2 rename to friedhof/mgrote_rsync/templates/rsync_mirror.timer.j2 diff --git a/roles/mgrote_rsync/templates/rsync_mirror_log.sh.j2 b/friedhof/mgrote_rsync/templates/rsync_mirror_log.sh.j2 similarity index 100% rename from roles/mgrote_rsync/templates/rsync_mirror_log.sh.j2 rename to friedhof/mgrote_rsync/templates/rsync_mirror_log.sh.j2 diff --git a/roles/mgrote_rsync/templates/rsync_mirror_mail.service.j2 b/friedhof/mgrote_rsync/templates/rsync_mirror_mail.service.j2 similarity index 100% rename from roles/mgrote_rsync/templates/rsync_mirror_mail.service.j2 rename to friedhof/mgrote_rsync/templates/rsync_mirror_mail.service.j2 diff --git a/host_vars/pbs.mgrote.net.yml b/host_vars/pbs.mgrote.net.yml index 1ad43973..315bd89b 100644 --- a/host_vars/pbs.mgrote.net.yml +++ b/host_vars/pbs.mgrote.net.yml @@ -223,6 +223,3 @@ sanoid_datasets: recursive: 'no' # noqa yaml[truthy] snapshots: true template: '14tage' - -### mgrote_rsync -rsync_host_role: destination diff --git a/host_vars/pve5.mgrote.net.yml b/host_vars/pve5.mgrote.net.yml index b248851f..8ddb9793 100644 --- a/host_vars/pve5.mgrote.net.yml +++ b/host_vars/pve5.mgrote.net.yml @@ -226,30 +226,3 @@ pve_pbs_datastore: username: user_pve5@pbs password: "{{ lookup('viczem.keepass.keepass', 'pbs_pve_user', 'password') }}" fingerprint: "7F:AC:54:75:1C:33:55:84:1E:1E:3A:15:5A:5E:AF:79:33:C9:D4:E1:C0:A0:1C:0D:9E:6A:EA:82:F9:27:57:79" - -### mgrote_sync -rsync_host_role: source -rsync_mirror_dirs: # bei Src+Dest KEIN "/" am Ende - - src: /hdd_data/archiv - dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/archiv" - - src: /hdd_data/backup - dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/backup" - - src: /hdd_data/bilder - dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/bilder" - - src: /hdd_data/buecher - dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/buecher" - - src: /hdd_data/music - dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/music" - - src: /hdd_data/programme - dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/programme" - - src: /hdd_data/proxmox - dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/proxmox" - - src: /hdd_data/restic - dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/restic" - - src: /hdd_data/scans - dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/scans" - - src: /hdd_data/tmp - dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/tmp" - - src: /hdd_data/videos - dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/videos" -# hdd_data/vm ist mit Absicht nicht dabei, zu groß diff --git a/playbooks/3_service/pbs.yml b/playbooks/3_service/pbs.yml index 48275745..87a12be4 100644 --- a/playbooks/3_service/pbs.yml +++ b/playbooks/3_service/pbs.yml @@ -19,7 +19,5 @@ tags: "pbs_users" - role: mgrote_pbs_datastores tags: "pbs_datastores" - - role: mgrote_rsync - tags: "rsync" - role: mgrote_fileserver_smb tags: "smb" diff --git a/playbooks/3_service/pve.yml b/playbooks/3_service/pve.yml index 345250a4..1304eed7 100644 --- a/playbooks/3_service/pve.yml +++ b/playbooks/3_service/pve.yml @@ -24,5 +24,3 @@ tags: "lxc-profile" - role: mgrote_pbs_pve_integration tags: "pbs" - - role: mgrote_rsync - tags: "rsync"