dfgd
Some checks failed
ansible-lint / gitleaks (pull_request) Successful in 3s
ansible-lint / Ansible Lint (pull_request) Failing after 28s

This commit is contained in:
Michael Grote 2024-10-29 20:52:32 +01:00
parent 3b1add7114
commit f5554cd73e
5 changed files with 21 additions and 21 deletions

View file

@ -1,7 +1,4 @@
--- ---
### mgrote_rsync
rsync_host_role: destination
### mgrote_netplan ### mgrote_netplan
netplan_configure: false netplan_configure: false

View file

@ -1,7 +1,4 @@
--- ---
### mgrote_rsync
rsync_host_role: source
### mgrote_netplan ### mgrote_netplan
netplan_configure: false netplan_configure: false

View file

@ -167,3 +167,6 @@ sanoid_datasets:
recursive: 'no' # noqa yaml[truthy] recursive: 'no' # noqa yaml[truthy]
snapshots: true snapshots: true
template: '14tage' template: '14tage'
### mgrote_rsync
rsync_host_role: destination

View file

@ -9,7 +9,6 @@
## hdd_data "neu" ## hdd_data "neu"
### sudo zpool create -o ashift=12 -o feature@encryption=enabled -O encryption=on -O keylocation=prompt -O keyformat=passphrase hdd_data /dev/disk/by-id/ata-ST18000NM003D-3DL103_ZVTBSAYS ### sudo zpool create -o ashift=12 -o feature@encryption=enabled -O encryption=on -O keylocation=prompt -O keyformat=passphrase hdd_data /dev/disk/by-id/ata-ST18000NM003D-3DL103_ZVTBSAYS
# mgrote.zfs_manage_datasets # mgrote.zfs_manage_datasets
### mgrote_zfs_extra ### mgrote_zfs_extra
# Variablen für mgrote.zfs_health/trim/scrub/zed/arc_mem/ sind zusammengefasst unter zfs_extra_* # Variablen für mgrote.zfs_health/trim/scrub/zed/arc_mem/ sind zusammengefasst unter zfs_extra_*
@ -229,6 +228,7 @@ pve_pbs_datastore:
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" 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 ### mgrote_sync
rsync_host_role: source
rsync_mirror_dirs: # bei Src+Dest KEIN "/" am Ende rsync_mirror_dirs: # bei Src+Dest KEIN "/" am Ende
- src: /hdd_data/tmp - src: /hdd_data/tmp
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/tmp" dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/tmp"

View file

@ -1,18 +1,21 @@
--- ---
- name: Include user tasks - name: Block
ansible.builtin.include_tasks: user.yml when: ("'source' in rsync_host_role") or ("'destination' in rsync_host_role")
block:
- name: Include user tasks
ansible.builtin.include_tasks: user.yml
- name: Ensure packages are present - name: Ensure packages are present
become: true become: true
ansible.builtin.package: ansible.builtin.package:
name: name:
- rsync - rsync
state: present state: present
- name: Include source tasks - name: Include source tasks
ansible.builtin.include_tasks: source.yml ansible.builtin.include_tasks: source.yml
when: "'source' in rsync_host_role" when: "'source' in rsync_host_role"
- name: Include destination tasks - name: Include destination tasks
ansible.builtin.include_tasks: destination.yml ansible.builtin.include_tasks: destination.yml
when: "'destination' in rsync_host_role" when: "'destination' in rsync_host_role"