I have an Ansible Playbook to set up my Metabase installation, which is working fine already. Now I found out about the
/api/setup endpoint and I thought it would be a nice addition to it.
Question is: how can I check that it is not the first time running the playbook (which is already used to update the installation as new versions are released), meaning the first installation already happened and therefore there is no need to call
Alternatively, how could I check that it is the first time and it needs running? Either would be fine by me.
I would have in mind either:
- Check something in the Metabase database (some table exists, or some record in some table, or both).
- Use some endpoint, such as
- Check that the API server is listening on port 3000.