feat: add tags to rabbitmq ansible jobs
This commit is contained in:
parent
4371b059ed
commit
f4fd2db3f3
1 changed files with 8 additions and 1 deletions
|
@ -120,10 +120,14 @@
|
||||||
ansible.builtin.stat:
|
ansible.builtin.stat:
|
||||||
path: "{{ rabbitmq_data }}"
|
path: "{{ rabbitmq_data }}"
|
||||||
register: rabbitmq_dir
|
register: rabbitmq_dir
|
||||||
|
tags:
|
||||||
|
- rabbitmq
|
||||||
- name: Fail if rabbitmq data dir does not exist
|
- name: Fail if rabbitmq data dir does not exist
|
||||||
ansible.builtin.fail:
|
ansible.builtin.fail:
|
||||||
msg: "RabbitMQ data dir is missing, please restore from the backup!"
|
msg: "RabbitMQ data dir is missing, please restore from the backup!"
|
||||||
when: not rabbitmq_dir.stat.exists
|
when: not rabbitmq_dir.stat.exists
|
||||||
|
tags:
|
||||||
|
- rabbitmq
|
||||||
|
|
||||||
- name: Ensure rabbitmq docker container is running
|
- name: Ensure rabbitmq docker container is running
|
||||||
docker_container:
|
docker_container:
|
||||||
|
@ -143,6 +147,8 @@
|
||||||
- "{{ rabbitmq_data }}/bitnami:/bitnami:rw"
|
- "{{ rabbitmq_data }}/bitnami:/bitnami:rw"
|
||||||
- "{{ rabbitmq_data }}/etc_rabbitmq:/etc/rabbitmq:rw"
|
- "{{ rabbitmq_data }}/etc_rabbitmq:/etc/rabbitmq:rw"
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
|
tags:
|
||||||
|
- rabbitmq
|
||||||
|
|
||||||
- name: Setup proxy site rabbitmq.n39.eu
|
- name: Setup proxy site rabbitmq.n39.eu
|
||||||
include_role:
|
include_role:
|
||||||
|
@ -150,7 +156,8 @@
|
||||||
vars:
|
vars:
|
||||||
site_name: "rabbitmq.n39.eu"
|
site_name: "rabbitmq.n39.eu"
|
||||||
proxy_port: 15672
|
proxy_port: 15672
|
||||||
|
tags:
|
||||||
|
- rabbitmq
|
||||||
|
|
||||||
- name: Ensure Power Meter Pulse Gateway for 19i room is running
|
- name: Ensure Power Meter Pulse Gateway for 19i room is running
|
||||||
docker_container:
|
docker_container:
|
||||||
|
|
Loading…
Reference in a new issue