made libraries just tasks

This commit is contained in:
tolerryan
2024-10-24 00:31:29 -05:00
parent 6821aa5d7d
commit 7fc40b1089
2 changed files with 16 additions and 14 deletions

View File

@@ -1,14 +1,15 @@
--- # Do not need as a playbook if included inside another playbook
- name: Setup restic cron jobs #---
hosts: all #- name: Setup restic cron jobs
become: yes # hosts: all
remote_user: ansible # become: yes
gather_facts: false # remote_user: ansible
# gather_facts: false
# vars_files: # vars_files:
# - cron.vars # - cron.vars
tasks: # tasks:
- name: Set up restic cron jobs - name: Set up restic cron jobs
cron: cron:
name: "{{ item.job_name }}" name: "{{ item.job_name }}"

View File

@@ -1,12 +1,13 @@
--- # Do not need as a playbook if included inside another playbook
- name: Setup restic user and scripts. #---
hosts: all #- name: Setup restic user and scripts.
become: yes # hosts: all
remote_user: ansible # become: yes
gather_facts: false # remote_user: ansible
# gather_facts: true
tasks: # tasks:
- name: Create Restic user - name: Create Restic user
user: user:
name: restic name: restic