echo init

master
omidshj 2025-09-01 18:38:30 +03:30
parent 9f9845328a
commit c072643046
1 changed files with 11 additions and 5 deletions

View File

@ -27,6 +27,17 @@
username: "{{ ghcr_username }}" username: "{{ ghcr_username }}"
password: "{{ ghcr_token }}" password: "{{ ghcr_token }}"
- name: Stop stage container if it exists
docker_container:
name: echo
state: absent
- name: Remove old image if exists
docker_image:
name: "{{ image_name }}"
state: absent
force_absent: true
- name: Pull image from GHCR - name: Pull image from GHCR
community.docker.docker_image: community.docker.docker_image:
name: "{{ image_name }}" name: "{{ image_name }}"
@ -41,11 +52,6 @@
group: root group: root
mode: '0644' mode: '0644'
- name: Stop stage container if it exists
docker_container:
name: echo
state: absent
- name: Run container from image - name: Run container from image
docker_container: docker_container:
name: echo name: echo