diff --git a/tasks/deploy_mysql-server.yml b/tasks/deploy_mysql-server.yml index bd0aaee..c08d061 100644 --- a/tasks/deploy_mysql-server.yml +++ b/tasks/deploy_mysql-server.yml @@ -57,6 +57,8 @@ state: present network: - mysqlnet + # We need to fix the IP address because podman DNS does not work with an internal network. + ip: 10.89.1.2 volume: - /mnt/volumes/mysql-server_data/data:/var/lib/mysql:z - /mnt/volumes/mysql-server_dumps/data:/mnt/dumps:z diff --git a/tasks/mysql-server_install_from_backup_stage_1.yml b/tasks/mysql-server_install_from_backup_stage_1.yml index 4f38a1a..52dc1aa 100644 --- a/tasks/mysql-server_install_from_backup_stage_1.yml +++ b/tasks/mysql-server_install_from_backup_stage_1.yml @@ -6,6 +6,8 @@ # and publishing ports on containers that are attached to mysqlnet # and other networks will not work unless all networks but one are internal. internal: true + # We need to fix the subnet because podman DNS does not work with an internal network. + subnet: 10.89.1.0/24 become: true - name: Create /usr/local/docker-mounted-files/docker-mysql-server-stack directory