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: