New role; path fix
This commit is contained in:
parent
9f069eb612
commit
1c709714db
@ -6,7 +6,7 @@
|
|||||||
strategy: free
|
strategy: free
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
standalone_backup_success_path: "/var/log/IPE/IPU/el7to8"
|
standalone_backup_success_path: "/var/IPE/IPU/el7to8"
|
||||||
standalone_backup_success_file: "{{ standalone_backup_success_path }}/standalone_rear_success"
|
standalone_backup_success_file: "{{ standalone_backup_success_path }}/standalone_rear_success"
|
||||||
|
|
||||||
|
|
||||||
|
14
playbooks/rear_restore.yml
Normal file
14
playbooks/rear_restore.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
- name: ReaR Restore Playbook
|
||||||
|
hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
become: false
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Configure ReaR local.conf file
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: ../roles/rear_local_cfg
|
||||||
|
|
||||||
|
- name: Perform ReaR restore
|
||||||
|
ansible.builtin.include_role:
|
||||||
|
name: ../roles/rear_restore
|
@ -51,12 +51,8 @@
|
|||||||
group: root
|
group: root
|
||||||
|
|
||||||
- name: Configure ReaR local.conf file
|
- name: Configure ReaR local.conf file
|
||||||
ansible.builtin.template:
|
ansible.builtin.include_role:
|
||||||
src: local.conf.j2
|
name: rear_local_cfg
|
||||||
dest: /etc/rear/local.conf
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: "0600"
|
|
||||||
|
|
||||||
- name: ReaR Backup
|
- name: ReaR Backup
|
||||||
block:
|
block:
|
||||||
|
8
roles/rear_local_cfg/tasks/main.yml
Normal file
8
roles/rear_local_cfg/tasks/main.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
- name: Configure ReaR local.conf file
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: local.conf.j2
|
||||||
|
dest: /etc/rear/local.conf
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0600"
|
Loading…
x
Reference in New Issue
Block a user