Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 097cbaf

Browse files
committed
Preinstall: Check if variables are defined before testing. [ansible]
- Will allow for roles to be skipped.
1 parent fe5f3e9 commit 097cbaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roles/rclone/tasks/preinstall.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
- name: "Preinstall | Display message when kernel has been updated"
1212
debug:
1313
msg: "Kernel was updated."
14-
when: (preinstall_kernel_restart)
14+
when: (preinstall_kernel_restart is defined) and (preinstall_kernel_restart)
1515

1616
- name: "Preinstall | Display message when cloudbox folder location has been migrated"
1717
debug:
1818
msg:
1919
- "Cloudbox folder was migrated to a new home location."
2020
- "Re-login with the '{{ user }}' account and run the Cloudbox installer from the '{{ cloudbox_folder_path }}/' path."
21-
when: (preinstall_user_relogin)
21+
when: (preinstall_user_relogin is defined) and (preinstall_user_relogin)
2222

2323
- name: "Preinstall | Cloudbox pre-install has completed!"
2424
debug:
@@ -40,4 +40,4 @@
4040
- "Failed to reboot automatically."
4141
- "You will need to restart the server yourself for changes to take effect."
4242

43-
when: (preinstall_kernel_restart)
43+
when: (preinstall_kernel_restart is defined) and (preinstall_kernel_restart)

0 commit comments

Comments
 (0)