From 8abedc760996244f5f5256efc534b914b7d3bd5e Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 28 Oct 2024 19:03:14 +0100 Subject: [PATCH] dfg --- roles/mgrote_rsync/tasks/main.yml | 7 +++++++ roles/mgrote_rsync/tasks/source.yml | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/roles/mgrote_rsync/tasks/main.yml b/roles/mgrote_rsync/tasks/main.yml index 8ee19b0e..55583b95 100644 --- a/roles/mgrote_rsync/tasks/main.yml +++ b/roles/mgrote_rsync/tasks/main.yml @@ -2,6 +2,13 @@ - name: Include user tasks ansible.builtin.include_tasks: user.yml +- name: Ensure packages are present + become: true + ansible.builtin.package: + name: + - rsync + state: present + - name: Include source tasks ansible.builtin.include_tasks: source.yml when: "'source' in rsync_host_role" diff --git a/roles/mgrote_rsync/tasks/source.yml b/roles/mgrote_rsync/tasks/source.yml index deb5762e..4700d6c4 100644 --- a/roles/mgrote_rsync/tasks/source.yml +++ b/roles/mgrote_rsync/tasks/source.yml @@ -1,11 +1,4 @@ --- -- name: Ensure packages are present - become: true - ansible.builtin.package: - name: - - rsync - state: present - - name: Ensure needed dirs exist become: true ansible.builtin.file: