Skip to content

Commit

Permalink
[change] Added geocoding check #310
Browse files Browse the repository at this point in the history
Closes #310
  • Loading branch information
Aryamanz29 authored May 9, 2022
1 parent 8cd1556 commit b348970
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,8 @@ Below are listed all the variables you can customize (you may also want to take
openwisp2_leaflet_config:
DEFAULT_CENTER: [42.06775, 12.62011]
DEFAULT_ZOOM: 6
# enable/disable geocoding check
openwisp2_geocoding_check: true
# specify path to a valid SSL certificate and key
# (a self-signed SSL cert will be generated if omitted)
openwisp2_ssl_cert: "/etc/nginx/ssl/server.crt"
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ openwisp2_time_zone: "UTC"
openwisp2_context: {}
openwisp2_allowed_hosts: []
openwisp2_leaflet_config: {}
openwisp2_geocoding_check: true
openwisp2_ssl_cert: "{{ openwisp2_path }}/ssl/server.crt"
openwisp2_ssl_key: "{{ openwisp2_path }}/ssl/server.key"
openwisp2_ssl_country: "US"
Expand Down
9 changes: 9 additions & 0 deletions tasks/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,15 @@
- name: start redis for migration
meta: flush_handlers

- name: run geocoding check
become: true
become_user: "{{ www_user }}"
when: openwisp2_geocoding_check
django_manage:
app_path: "{{ openwisp2_path }}"
command: "check --deploy --tag geocoding"
virtualenv: "{{ virtualenv_path }}"

- name: migrate
notify: reload supervisor
become: true
Expand Down

0 comments on commit b348970

Please sign in to comment.