From ae17ae921be7f9023e589bfe81b9064ddeeeb67b Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 28 Oct 2024 18:57:35 +0100 Subject: [PATCH] dsfg --- group_vars/pbs.yml | 3 +++ group_vars/pve.yml | 3 +++ roles/mgrote_rsync/tasks/main.yml | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/group_vars/pbs.yml b/group_vars/pbs.yml index 6520ac76..358c4634 100644 --- a/group_vars/pbs.yml +++ b/group_vars/pbs.yml @@ -1,4 +1,7 @@ --- +### mgrote_rsync +rsync_host_role: destination + ### mgrote_netplan netplan_configure: false diff --git a/group_vars/pve.yml b/group_vars/pve.yml index b2b56dcc..1225340a 100644 --- a/group_vars/pve.yml +++ b/group_vars/pve.yml @@ -1,4 +1,7 @@ --- +### mgrote_rsync +rsync_host_role: source + ### mgrote_netplan netplan_configure: false diff --git a/roles/mgrote_rsync/tasks/main.yml b/roles/mgrote_rsync/tasks/main.yml index 7ec0230a..8ee19b0e 100644 --- a/roles/mgrote_rsync/tasks/main.yml +++ b/roles/mgrote_rsync/tasks/main.yml @@ -4,8 +4,8 @@ - name: Include source tasks ansible.builtin.include_tasks: source.yml - when: "'source' in rsync_host" + when: "'source' in rsync_host_role" - name: Include destination tasks ansible.builtin.include_tasks: destination.yml - when: "'destination' in rsync_host " + when: "'destination' in rsync_host_role"