Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions ansible/playbooks/roles/owendemooy.nas-backup/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,19 @@
dest: /config
mode: "0777"

- name: Add Restic Repo Password.
- name: Get Scripts to Update
ansible.builtin.find:
paths: /config
patterns: "*.sh"
register: update_scripts

- name: Add Restic Repo Password to Scripts
ansible.builtin.lineinfile:
path: "/config/*.sh"
path: "{{ item.path }}"
regexp: "^RESTIC_PASSWORD=.*"
line: "exportRESTIC_PASSWORD={{ restic_password }}"
state: present
mode: "0640"
loop: "{{ update_scripts.files }}"

- name: Ensure Schedule Task exists for Backup Job
ansible.builtin.cron:
Expand Down
Loading