Skip to content

Commit

Permalink
Add bool filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Joss committed Sep 22, 2023
1 parent a94c915 commit 8c70e10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansible/roles/netbox/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ netbox__config_base_path: ''
#
# Enable or disable maintenance mode banner.
# This overwrites potentially existing `dynamic configuration settings <https://netbox.readthedocs.io/en/stable/configuration/dynamic-settings/>`__.
netbox__config_maintenance_mode: '{{ not netbox__primary }}'
netbox__config_maintenance_mode: '{{ not netbox__primary | bool }}'

# ]]]
# .. envvar:: netbox__config_napalm_username [[[
Expand Down Expand Up @@ -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 [[[
Expand Down

0 comments on commit 8c70e10

Please sign in to comment.