1 parent
ec09b49282
commit
82251b973f
1 file changed
+21
@@ -114,6 +114,27 @@
|
|||||||
dest: /usr/local/bin/pdsadmin
|
dest: /usr/local/bin/pdsadmin
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
|
- name: Flush handlers
|
||||||
|
meta: flush_handlers
|
||||||
|
|
||||||
|
- name: PDS Health check
|
||||||
|
uri:
|
||||||
|
url: "https://{{ pds_hostname }}/xrpc/_health"
|
||||||
|
method: GET
|
||||||
|
status_code: 200
|
||||||
|
retries: 3
|
||||||
|
delay: 5
|
||||||
|
|
||||||
|
- name: Check backup timer is active
|
||||||
|
command: systemctl is-active pds-backup.timer
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: Check last backup run succeeded
|
||||||
|
shell: systemctl show pds-backup.service -p ExecMainStatus --value
|
||||||
|
register: pds_backup_exit_code
|
||||||
|
changed_when: false
|
||||||
|
failed_when: pds_backup_exit_code.stdout != "0"
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- name: apply changes
|
- name: apply changes
|
||||||
shell: cd {{ pds_data_dir }} && docker compose up -d && docker restart caddy
|
shell: cd {{ pds_data_dir }} && docker compose up -d && docker restart caddy
|
||||||
Reference in new issue
Block a user