Skip to content

Commit

Permalink
Add default value True
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Joss committed Sep 8, 2023
1 parent 1e8734d commit d3c39b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansible/roles/netbox/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
become: True
become_user: '{{ netbox__user }}'
when: (netbox__register_checkout is changed and
netbox__primary|bool)
netbox__primary|d(True))
register: netbox__register_migration

- name: Create Django superuser account
Expand All @@ -226,7 +226,7 @@
virtualenv: '{{ netbox__virtualenv }}'
become: True
become_user: '{{ netbox__user }}'
when: (netbox__primary|bool and
when: (netbox__primary|d(True) and
not netbox__register_installed.stat.exists|bool and
not netbox__register_migration.stdout is search('No migrations to apply.'))
no_log: '{{ debops__no_log | d(True) }}'
Expand Down

0 comments on commit d3c39b8

Please sign in to comment.