Skip to content

Commit

Permalink
fix: Make sure variable is defined before use
Browse files Browse the repository at this point in the history
  • Loading branch information
btravouillon committed Aug 28, 2023
1 parent 32b6a17 commit a05d8e8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tasks/bareos_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
group: bareos
mode: '0640'
loop: "{{ bareos_filesets }}"
when: bareos_filesets is defined

- name: Create bareos pool config files
template:
Expand All @@ -95,6 +96,7 @@
group: bareos
mode: '0640'
loop: "{{ bareos_pools }}"
when: bareos_pools is defined

- name: Create bareos dir storage config files
template:
Expand All @@ -104,6 +106,7 @@
group: bareos
mode: '0640'
loop: "{{ bareos_dir_storage }}"
when: bareos_dir_storage is defined

- name: Create bareos device config files
template:
Expand All @@ -113,6 +116,7 @@
group: bareos
mode: '0640'
loop: "{{ bareos_devices }}"
when: bareos_devices is defined

- name: Create bareos sd storage config file
template:
Expand All @@ -130,6 +134,7 @@
group: bareos
mode: '0640'
loop: "{{ bareos_schedules }}"
when: bareos_schedules is defined

- name: Create bareos jobdef config files
template:
Expand All @@ -139,6 +144,7 @@
group: bareos
mode: '0640'
loop: "{{ bareos_jobdefs }}"
when: bareos_jobdefs is defined

- name: Create bareos catalog job config file
template:
Expand All @@ -156,6 +162,7 @@
group: bareos
mode: '0640'
loop: "{{ bareos_jobs }}"
when: bareos_jobs is defined

- name: Create bareos messages config files
template:
Expand All @@ -173,6 +180,7 @@
path: /etc/bareos/bareos-dir.d/catalog/MyCatalog.conf
regexp: '^ dbpassword ='
line: ' dbpassword = "{{ bareos_postgres_pass }}"'
when: bareos_postgres_pass is defined

- name: Add bconsole config file
template:
Expand Down

0 comments on commit a05d8e8

Please sign in to comment.