websoft9/apps/roles/metabase/tasks/main.yml

21 lines
681 B
YAML
Raw Normal View History

2022-07-13 08:23:58 +08:00
- name: Copy create_users.sh to /opt/
template:
src: create_users.sh
dest: /opt/create_users.sh
2022-07-13 08:52:46 +08:00
- name: Install {{appname}}
include_tasks: tasks/install.yml
vars:
app: "metabase"
2022-05-16 14:30:59 +08:00
- name: wait for {{appname}} start
wait_for:
port: "{{nginx_reverse_proxy_port}}"
delay: 10
2022-07-13 08:23:58 +08:00
timeout: 120
2022-05-16 14:30:59 +08:00
2022-05-16 10:37:37 +08:00
- name: Check {{appname}} Version
shell: |
sudo echo "metabase version:" $(curl https://api.github.com/repos/metabase/metabase/releases/latest |jq -r .tag_name) |sudo tee -a /data/logs/install_version.txt
2022-05-16 11:39:58 +08:00
sudo echo "mysql version:" $(docker inspect metabase-db |grep -i mysql_version |cut -d= -f2) |sudo tee -a /data/logs/install_version.txt