This commit is contained in:
2025-03-05 22:47:50 -05:00
parent 0360927617
commit 26638d9728
7 changed files with 32 additions and 15 deletions

View File

@ -1,9 +1,13 @@
---
- name: Debug job_template_name
ansible.builtin.debug:
msg: "We'd pick Non-Prod/Prod NFS servers from here based on the selected job template name: {{ job_template_name }}."
- name: Check connectivity to NFS servers
ansible.builtin.wait_for:
host: "{{ item }}"
port: 2049
timeout: 30
timeout: 5 # default: 30
loop: "{{ rear_vars_nfs_np }}"
ignore_errors: true
register: active_nfs_servers

View File

@ -40,10 +40,6 @@
- name: Write backup success file
ansible.builtin.include_tasks:
file: create_success_file.yml
- name: ReaR backup success
ansible.builtin.debug:
msg: "ReaR backup has completed successfully."
rescue:
- name: ReaR backup failed
ansible.builtin.fail:
@ -63,3 +59,7 @@
mode: "0600"
when:
- rear_config_stat['stat']['exists'] | bool
- name: ReaR backup success
ansible.builtin.debug:
msg: "ReaR backup has completed successfully."

View File

@ -6,7 +6,7 @@ OUTPUT=ISO
OUTPUT_URL=nfs://{{ nfs_srv }}{{ rear_vars_nfs_base }}/{{ rear_backup_workflow }}
BACKUP=NETFS
BACKUP_URL=nfs://{{ nfs_srv }}{{ rear_vars_nfs_base }}/{{ rear_backup_workflow }}
# SSH_ROOT_PASSWORD="bob"
# SSH_ROOT_PASSWORD="foo"
USE_STATIC_NETWORKING=yes
CLONES_ALL_USERS_GROUPS=yes
SSH_FILES=yes

View File

@ -8,7 +8,7 @@ rear_backup_workflow: standalone
# Used by:
# - rear_restore
rear_restore_tmpdir: /tmp/rear_restore
rear_restore_tmpdir: /var/tmp/rear_restore
# Used by:
# - rear_backup