From 7fc40b1089f0ed1673d867a82a57fa4d29a36b40 Mon Sep 17 00:00:00 2001 From: tolerryan <105945216+tolerryan@users.noreply.github.com> Date: Thu, 24 Oct 2024 00:31:29 -0500 Subject: [PATCH] made libraries just tasks --- roles/lib/setup-restic-cron.yml | 15 ++++++++------- roles/lib/setup-restic.yml | 15 ++++++++------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/roles/lib/setup-restic-cron.yml b/roles/lib/setup-restic-cron.yml index c24f6c5..d0a1dd1 100644 --- a/roles/lib/setup-restic-cron.yml +++ b/roles/lib/setup-restic-cron.yml @@ -1,14 +1,15 @@ ---- -- name: Setup restic cron jobs - hosts: all - become: yes - remote_user: ansible - gather_facts: false +# Do not need as a playbook if included inside another playbook +#--- +#- name: Setup restic cron jobs +# hosts: all +# become: yes +# remote_user: ansible +# gather_facts: false # vars_files: # - cron.vars - tasks: +# tasks: - name: Set up restic cron jobs cron: name: "{{ item.job_name }}" diff --git a/roles/lib/setup-restic.yml b/roles/lib/setup-restic.yml index e978303..292ef96 100644 --- a/roles/lib/setup-restic.yml +++ b/roles/lib/setup-restic.yml @@ -1,12 +1,13 @@ ---- -- name: Setup restic user and scripts. - hosts: all - become: yes - remote_user: ansible - gather_facts: false +# Do not need as a playbook if included inside another playbook +#--- +#- name: Setup restic user and scripts. +# hosts: all +# become: yes +# remote_user: ansible +# gather_facts: true - tasks: +# tasks: - name: Create Restic user user: name: restic