Variable fixes

This commit is contained in:
2025-02-27 20:34:54 -05:00
parent 2eaeb48fee
commit b2d6c4467e
3 changed files with 11 additions and 9 deletions

View File

@ -5,11 +5,8 @@
gather_facts: true
strategy: free
vars:
bigboot_backup_success_path: "/var/log/IPE/IPU"
bigboot_backup_success_file: "{{ bigboot_backup_success_path }}/bigboot_rear_success"
bigboot_nfs_backup_share: "/backups/bigboot"
bigboot_nfs_backup_share_fsid: 20
vars_files:
- bigboot_vars.yml
tasks:
- name: Fetch the template name from NFS exports
@ -32,7 +29,6 @@
name: rhc.rear.rear_backup
vars:
rear_nfs_export_share: "{{ bigboot_nfs_backup_share }}"
rear_nfs_export_fsid: "{{ bigboot_nfs_backup_share_fsid }}"
- name: Create success file directory if not present
ansible.builtin.file:

View File

@ -4,9 +4,9 @@
client_ips: "{{ item['value']['ip_addresses'] | list | flatten }}"
namehost: "{{ item['value']['server_hostname'] }}"
- name: Include NFS export role
- name: Include NFS export role # noqa var-naming
ansible.builtin.include_role:
name: rhc.rear.nfs_export
vars:
rear_nfs_export_share: /backups/bigboot # noqa var-naming
rear_nfs_export_fsid: 10 # noqa var-naming
rear_nfs_export_share: "{{ bigboot_nfs_backup_share }}"
rear_nfs_export_fsid: "{{ bigboot_nfs_backup_share_fsid }}"

View File

@ -35,3 +35,9 @@ bigboot_protected_services:
# Filename of disabled services log:
bigboot_disabled_services_log: /var/ipe/ipu/el7to8/bigboot_disabled_services.log
bigboot_backup_success_path: "/var/log/IPE/IPU"
bigboot_backup_success_file: "{{ bigboot_backup_success_path }}/bigboot_rear_success"
bigboot_nfs_backup_share: "/backups/bigboot"
bigboot_nfs_backup_share_fsid: 20