make sure an initial run does not error out on DB queries

This commit is contained in:
linus 2021-12-20 17:51:48 +01:00
parent 612eb112c8
commit 2ee0dc77f1

View File

@ -6,9 +6,10 @@
- hosts: innernet_server
remote_user: root
tasks:
- name: Query innernet-server for peers
- name: Query innernet-server for CIDRs
shell: 'sqlite3 /var/lib/innernet-server/{{ network_name }}.db "select name from cidrs;"'
register: global_existing_cidrs
ignore_errors: true
- name: CIDRs already registered on innernet-server
debug:
@ -29,6 +30,7 @@
- name: Query innernet-server for peers
shell: 'sqlite3 /var/lib/innernet-server/{{ network_name }}.db "select name from peers;"'
register: global_existing_peers
ignore_errors: true
- name: Peers already registered on innernet-server
debug: