unfix playbook fix

This commit is contained in:
Mike Reeves
2023-02-23 16:12:57 -05:00
parent b206b23fe1
commit bf512d56ec

View File

@@ -87,12 +87,14 @@ so-mysql:
- networks: - networks:
- sobridge: - sobridge:
- ipv4_address: {{ DOCKER.containers['so-mysql'].ip }} - ipv4_address: {{ DOCKER.containers['so-mysql'].ip }}
- extra_hosts:
- {{ GLOBALS.manager }}:{{ GLOBALS.manager_ip }}
- port_bindings: - port_bindings:
{% for BINDING in DOCKER.containers['so-mysql'].port_bindings %} {% for BINDING in DOCKER.containers['so-mysql'].port_bindings %}
- {{ BINDING }} - {{ BINDING }}
{% endfor %} {% endfor %}
- environment: - environment:
- MYSQL_ROOT_HOST={{ GLOBALS.so_docker_bip }} - MYSQL_ROOT_HOST={{ GLOBALS.manager }}
- MYSQL_ROOT_PASSWORD=/etc/mypass - MYSQL_ROOT_PASSWORD=/etc/mypass
- binds: - binds:
- /opt/so/conf/mysql/etc/my.cnf:/etc/my.cnf:ro - /opt/so/conf/mysql/etc/my.cnf:/etc/my.cnf:ro
@@ -105,7 +107,7 @@ so-mysql:
- file: mysqlcnf - file: mysqlcnf
- file: mysqlpass - file: mysqlpass
cmd.run: cmd.run:
- name: until nc -z {{ GLOBALS.so_docker_bip }} 3306; do sleep 1; done - name: until nc -z {{ GLOBALS.manager }} 3306; do sleep 1; done
- timeout: 600 - timeout: 600
- onchanges: - onchanges:
- docker_container: so-mysql - docker_container: so-mysql