make sure sqlite3 is installed before the queries are run

This commit is contained in:
linus 2021-12-20 17:55:55 +01:00
parent 2ee0dc77f1
commit e9045532f4

View File

@ -6,6 +6,11 @@
- hosts: innernet_server
remote_user: root
tasks:
- name: Install needed packages
apt:
package:
- sqlite3
- name: Query innernet-server for CIDRs
shell: 'sqlite3 /var/lib/innernet-server/{{ network_name }}.db "select name from cidrs;"'
register: global_existing_cidrs