Skip to content

Commit cafee99

Browse files
committed
format yaml files
1 parent a536936 commit cafee99

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

ansible/roles/common/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
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:
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
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"

0 commit comments

Comments
 (0)