add local.conf update to tasks
This commit is contained in:
@ -1,4 +1,12 @@
|
|||||||
---
|
---
|
||||||
|
- name: Update ReaR configuration file
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: local.conf.j2
|
||||||
|
dest: /etc/rear/local.conf
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0600"
|
||||||
|
|
||||||
- name: Execute ReaR backup
|
- name: Execute ReaR backup
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "Executing ReaR backup explicitly including the '{{ bigboot_adjacent_lvm_device }}' logical volume."
|
msg: "Executing ReaR backup explicitly including the '{{ bigboot_adjacent_lvm_device }}' logical volume."
|
||||||
|
22
roles/rear_backup/templates/local.conf.j2
Normal file
22
roles/rear_backup/templates/local.conf.j2
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
##############################################
|
||||||
|
# *** MANAGED BY ANSIBLE - DO NOT MODIFY *** #
|
||||||
|
##############################################
|
||||||
|
|
||||||
|
OUTPUT=ISO
|
||||||
|
OUTPUT_URL=nfs://{{ rear_nfs_srv }}
|
||||||
|
BACKUP=NETFS
|
||||||
|
BACKUP_URL=nfs://{{ rear_nfs_srv }}
|
||||||
|
USE_STATIC_NETWORKING=yes
|
||||||
|
CLONSE_ALL_USERS_GROUPS=yes
|
||||||
|
SSH_FILES=yes
|
||||||
|
SSH_UNPROTECTED_PRIVATE_KEYS=yes
|
||||||
|
GRUB_RESCUE=1
|
||||||
|
KERNEL_CMDLINE="unattended"
|
||||||
|
USER_INPUT_TIMEOUT=1
|
||||||
|
USER_INPUT_DISK_LAYOUT_PROCEED_RECOVERY=yes
|
||||||
|
ONLY_INCLUDE_VG=( "system" {% if bigboot_lv_vg_name is defined %}"{{ bigboot_lv_vg_name }}" {% endif -%} )
|
||||||
|
{% if bigboot_lv_info.mount != '/lv1' %}
|
||||||
|
BACKUP_PROG_EXCLUDE=( "${BACKUP_PROG_EXCLUDE[@]}" '/applog' )
|
||||||
|
EXCLUDE_MOUNTPOINTS=( "${EXCLUDE_MOUNTPOINTS[@]" '/applog' )
|
||||||
|
EXCLUDE_BACKUP=("${EXCLUDE_BACKUP[@]}" fs:/applog )
|
||||||
|
{% endif %}
|
Reference in New Issue
Block a user