File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 rescue :
2323 - name : Fix missing packages and retry update
2424 ansible.builtin.apt :
25- update_cache : yes
26- force_apt_get : yes
25+ update_cache : true
26+ force_apt_get : true
2727 become : true
2828
2929 always :
Original file line number Diff line number Diff line change 11---
22- name : Restart application container
33 become : true
4- ansible.builtin.shell : |
5- docker stop "{{ app_container_name }}" || true
6- docker rm "{{ app_container_name }}" || true
7- docker run -d --name "{{ app_container_name }}" -p {{ app_port }}:5000 --restart unless-stopped "{{ docker_image }}:{{ docker_image_tag }}"
8- args :
9- warn : false
4+ ansible.builtin.docker_container :
5+ name : " {{ app_container_name }}"
6+ image : " {{ docker_image }}:{{ docker_image_tag }}"
7+ state : restarted
8+ restart_policy : unless-stopped
9+ published_ports :
10+ - " {{ app_port }}:5000"
You can’t perform that action at this time.
0 commit comments