Browse Source

Merge "Option to remove the self-installed ReaR cron task"

changes/64/777164/1
Zuul 2 months ago
committed by Gerrit Code Review
parent
commit
fa59fc28ca
2 changed files with 12 additions and 0 deletions
  1. +3
    -0
      tripleo_ansible/roles/backup_and_restore/defaults/main.yml
  2. +9
    -0
      tripleo_ansible/roles/backup_and_restore/tasks/setup_rear.yml

+ 3
- 0
tripleo_ansible/roles/backup_and_restore/defaults/main.yml View File

@ -72,3 +72,6 @@ tripleo_backup_and_restore_ceph_path: "/var/lib/ceph"
# If there is a firewalld active, setup the zone where the NFS server ports need to be opened
tripleo_backup_and_restore_firewalld_zone: "libvirt"
# The ReaR rpm installs a cronjob at 1:30 each day by default. This variable deactivate that behaviour.
tripleo_backup_and_restore_remove_default_cronjob: true

+ 9
- 0
tripleo_ansible/roles/backup_and_restore/tasks/setup_rear.yml View File

@ -40,6 +40,15 @@
tags:
- bar_setup_rear
- name: Remove ReaR rpm default cron programming
become: true
file:
path: /etc/cron.d/rear
state: absent
when: tripleo_backup_and_restore_remove_default_cronjob | bool
tags:
- bar_setup_rear
- name: Get local hostname
command: hostname
register: tripleo_backup_and_restore_hostname


Loading…
Cancel
Save