feat: Add database initialization to items playbook

This commit is contained in:
Mangiang 2021-10-28 13:57:41 -04:00
parent a124febf5c
commit 920f69d4c0
No known key found for this signature in database
GPG Key ID: DAE9B92A692CD55C

View File

@ -40,4 +40,11 @@
owner: "{{ lookup('env', 'DEPLOYMENT_USER') }}" owner: "{{ lookup('env', 'DEPLOYMENT_USER') }}"
group: www-data group: www-data
mode: 0774 mode: 0774
recurse: yes recurse: yes
- name: Initialize database
uri:
url: "https://{{ lookup('env', 'SPT_HOSTNAME') }}/api/refresh"
method: GET
status_code: [200, 204]
timeout: 60