solar-resources/examples/resources/simple/mariadb/wait.yml

10 lines
219 B
YAML

- hosts: [service/mariadb]
sudo: yes
tasks:
- shell: docker exec -t {{name}} mysql -p{{root_password}} -uroot -e "select 1"
register: result
until: result.rc == 0
retries: 10
delay: 0.5