change playbook to use hostname

This commit is contained in:
Mike Reeves
2023-02-22 14:32:49 -05:00
parent 59c700ad10
commit 68708accde
3 changed files with 5 additions and 2 deletions

View File

@@ -91,6 +91,8 @@ so-mysql:
{% for BINDING in DOCKER.containers['so-mysql'].port_bindings %}
- {{ BINDING }}
{% endfor %}
- extra_hosts:
- {{ GLOBALS.manager }}:{{ GLOBALS.sobip }}
- environment:
- MYSQL_ROOT_HOST={{ GLOBALS.manager_ip }}
- MYSQL_ROOT_PASSWORD=/etc/mypass