add the tags in docker-tasks as well

This commit is contained in:
Arya 2023-07-19 20:56:23 +05:30
parent c0c6a23b1d
commit d842110862
Signed by: arya
GPG Key ID: 842D12BDA50DF120

View File

@ -4,7 +4,7 @@
path: "{{ docker_dir }}/{{ item }}"
state: directory
mode: "0755"
tags: docker
tags: docker,soleil,pizza
- name: Copy docker-compose templates for the service
ansible.builtin.template:
@ -13,14 +13,14 @@
backup: true
mode: preserve
register: check_status
tags: docker
tags: docker,soleil,pizza
- name: Check if extras file exists for the service
delegate_to: localhost
ansible.builtin.stat:
path: ./compose/{{ item }}/extras.conf.j2
register: file
tags: docker
tags: docker,soleil,pizza
- name: Copy extras file
ansible.builtin.template:
@ -29,7 +29,7 @@
backup: true
mode: preserve
when: file.stat.exists
tags: docker
tags: docker,soleil,pizza
- name: "Update docker service image"
ansible.builtin.command:
@ -38,7 +38,7 @@
when: check_status.changed
register: updateout
changed_when: updateout.rc != 0
tags: docker
tags: docker,soleil,pizza
- name: "Stop docker service"
ansible.builtin.command:
@ -47,7 +47,7 @@
when: check_status.changed
register: stopout
changed_when: stopout.rc != 0
tags: docker
tags: docker,soleil,pizza
- name: "Start docker service"
ansible.builtin.command:
@ -56,4 +56,4 @@
when: check_status.changed
register: startout
changed_when: startout.rc != 0
tags: docker
tags: docker,soleil,pizza