add the tags in docker-tasks as well
This commit is contained in:
parent
c0c6a23b1d
commit
d842110862
@ -4,7 +4,7 @@
|
|||||||
path: "{{ docker_dir }}/{{ item }}"
|
path: "{{ docker_dir }}/{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
tags: docker
|
tags: docker,soleil,pizza
|
||||||
|
|
||||||
- name: Copy docker-compose templates for the service
|
- name: Copy docker-compose templates for the service
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
@ -13,14 +13,14 @@
|
|||||||
backup: true
|
backup: true
|
||||||
mode: preserve
|
mode: preserve
|
||||||
register: check_status
|
register: check_status
|
||||||
tags: docker
|
tags: docker,soleil,pizza
|
||||||
|
|
||||||
- name: Check if extras file exists for the service
|
- name: Check if extras file exists for the service
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
ansible.builtin.stat:
|
ansible.builtin.stat:
|
||||||
path: ./compose/{{ item }}/extras.conf.j2
|
path: ./compose/{{ item }}/extras.conf.j2
|
||||||
register: file
|
register: file
|
||||||
tags: docker
|
tags: docker,soleil,pizza
|
||||||
|
|
||||||
- name: Copy extras file
|
- name: Copy extras file
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
@ -29,7 +29,7 @@
|
|||||||
backup: true
|
backup: true
|
||||||
mode: preserve
|
mode: preserve
|
||||||
when: file.stat.exists
|
when: file.stat.exists
|
||||||
tags: docker
|
tags: docker,soleil,pizza
|
||||||
|
|
||||||
- name: "Update docker service image"
|
- name: "Update docker service image"
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
@ -38,7 +38,7 @@
|
|||||||
when: check_status.changed
|
when: check_status.changed
|
||||||
register: updateout
|
register: updateout
|
||||||
changed_when: updateout.rc != 0
|
changed_when: updateout.rc != 0
|
||||||
tags: docker
|
tags: docker,soleil,pizza
|
||||||
|
|
||||||
- name: "Stop docker service"
|
- name: "Stop docker service"
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
@ -47,7 +47,7 @@
|
|||||||
when: check_status.changed
|
when: check_status.changed
|
||||||
register: stopout
|
register: stopout
|
||||||
changed_when: stopout.rc != 0
|
changed_when: stopout.rc != 0
|
||||||
tags: docker
|
tags: docker,soleil,pizza
|
||||||
|
|
||||||
- name: "Start docker service"
|
- name: "Start docker service"
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
@ -56,4 +56,4 @@
|
|||||||
when: check_status.changed
|
when: check_status.changed
|
||||||
register: startout
|
register: startout
|
||||||
changed_when: startout.rc != 0
|
changed_when: startout.rc != 0
|
||||||
tags: docker
|
tags: docker,soleil,pizza
|
||||||
|
Loading…
Reference in New Issue
Block a user