Well, I'm trying to register a device but I got this error.
daemon.err openwisp: Failed to connect to controller during registration: curl exit code 2
This is my playbook configuration
- hosts: openwisp2
become: "{{ become | default('yes') }}"
roles:
- openwisp.openwisp2
vars:
openwisp2_default_from_email: "hugo"
shared_secret: "test"
And my hosts file
[openwisp2]
localhost
And in my router (I'm using Openwrt) I have this
config controller 'http'
option url -k 'https://localhost/'
#option interval '120'
option verify_ssl '0'
option shared_secret 'test'
#option consistent_key '1'
#option mac_interface 'eth0'
#option merge_config '1'
#option test_config '1'
#option test_script '/usr/sbin/mytest'
option uuid ''
option key ''
list unmanaged 'system.@led'
list unmanaged 'network.loopback'
list unmanaged 'network.@switch'
list unmanaged 'network.@switch_vlan'
curl options
#option connect_timeout '15'
#option max_time '30'
#option capath '/etc/ssl/certs'
#option cacert '/etc/ssl/certs/ca-certificates.crt'
# hooks
#option pre_reload_hook '/usr/sbin/my_pre_reload_hook'
I really don't know how to fix it :c