diff --git a/ansible/roles/netbox/defaults/main.yml b/ansible/roles/netbox/defaults/main.yml index 52b3b401b3..79af00c576 100644 --- a/ansible/roles/netbox/defaults/main.yml +++ b/ansible/roles/netbox/defaults/main.yml @@ -676,7 +676,7 @@ netbox__config_base_path: '' # # Enable or disable maintenance mode banner. # This overwrites potentially existing `dynamic configuration settings `__. -netbox__config_maintenance_mode: '{{ not netbox__primary }}' +netbox__config_maintenance_mode: '{{ not netbox__primary | bool }}' # ]]] # .. envvar:: netbox__config_napalm_username [[[ @@ -849,7 +849,7 @@ netbox__config_metrics_enabled: False # can be useful for enabling authentication on a standby instance with # read-only database access.) Note that the user as which NetBox runs must have # read and write permissions to this path. -netbox__config_session_file_path: '{{ "" if netbox__primary else netbox__data + "/sessions" }}' +netbox__config_session_file_path: '{{ "" if netbox__primary | bool else netbox__data + "/sessions" }}' # ]]] # .. envvar:: netbox__config_media_root [[[