You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I described the following ansible tasks. When changing haproxy.cfg file, you need to apply it, but at docker_stack task the haproxy.cfg remains the previous one, although the new one is already present in the docker-compose.yaml. If you make changes to the haproxy.cfg again, then the previous one is applied, and each time it is not the new but the previous config that is applied. And only if you add the last task (ansible.builtin.shell), then in this case the newest haproxy.cfg is applied.
Should a docker_stack update configs when called?
I described the following ansible tasks. When changing
haproxy.cfg
file, you need to apply it, but atdocker_stack
task thehaproxy.cfg
remains the previous one, although the new one is already present in thedocker-compose.yaml
. If you make changes to thehaproxy.cfg
again, then the previous one is applied, and each time it is not the new but the previous config that is applied. And only if you add the last task (ansible.builtin.shell
), then in this case the newesthaproxy.cfg
is applied.Should a
docker_stack
update configs when called?Docker-compose.yaml file:
ansible [core 2.15.10]
config file = None
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.10/dist-packages/ansible
ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/usr/bin/python3)
jinja version = 3.1.2
libyaml = True
docker module version
7.0.0
The text was updated successfully, but these errors were encountered: