mirror of
https://git.fsfe.org/fsfe-system-hackers/innernet-playbook.git
synced 2024-11-21 22:23:10 +01:00
make sure an initial run does not error out on DB queries
This commit is contained in:
parent
612eb112c8
commit
2ee0dc77f1
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user