Skip to content

Commit

Permalink
Set a default netbox_processes if vcpus fact doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
lae committed Oct 31, 2021
1 parent 370516a commit 99d3dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ netbox_shared_path: "{{ netbox_home }}/shared"

netbox_socket: "127.0.0.1:8000"
netbox_protocol: http
netbox_processes: "{{ ansible_processor_vcpus }}"
netbox_processes: "{{ ansible_processor_vcpus | default(1) }}"
netbox_application_log: "file:{{ netbox_shared_path }}/application.log"
netbox_requests_log: "file:{{ netbox_shared_path }}/requests.log"

Expand Down

0 comments on commit 99d3dca

Please sign in to comment.