restic changes

This commit is contained in:
abrown38 committed 2025-06-05 11:22:40 +01:00
1 parent b2d9c419c9
commit cf426fa330
4 files changed
+25 -9

No files matched your search

+17 -6
View File
@@ -2,10 +2,6 @@
- name: Install scoop
tags: install_scoop
block:
#- name: download install script
# ansible.windows.win_powershell:
# script: |
# irm get.scoop.sh -outfile 'C:\eidf\install.ps1'
- name: Run install script
win_shell: |
powershell Invoke-RestMethod -Uri https://get.scoop.sh -outfile 'C:\eidf\install.ps1'
@@ -34,14 +30,29 @@
win_shell: scoop install resticprofile
tags: install_resticprofile
- name: Ensure parent directory exists
ansible.windows.win_file:
path: "C:\\resticprofile"
state: directory
tags: copy_restickey
- name: Copy restic key
ansible.windows.win_copy:
content: "{{ restic_password }}"
dest: "C:\\resticprofile\\restic.key"
force: false
tags: copy_restickey
- name: Copy resticprofile
ansible.windows.win_template:
src: "profiles.yaml"
dest: "C:\\resticprofile"
dest: "C:\\resticprofile\\"
force: true
tags: copy_resticprofile
- name: Schedule resticprofile
win_shell: resticprofile -n study_data schedule
tags: schedule_resticprofile
tags:
- schedule_resticprofile
- never
when: inventory_hostname in groups['meta-name_fs01']