openstack-ansible-os_tacker/tasks/tacker_messaging_setup.yml
Dmitriy Rabotyagov 4382257d3f Fix linters and metadata
With update of ansible-lint to version >=6.0.0 a lot of new
linters were added, that enabled by default. In order to comply
with linter rules we're applying changes to the role.

With that we also update metdata to reflect current state.

Depends-On: https://review.opendev.org/c/openstack/ansible-role-systemd_service/+/888223
Change-Id: I9aaf6680c274453a16b6f9879cf488ae2050e71f
2023-07-14 20:07:26 +02:00

28 lines
698 B
YAML

---
# tacker messaging setup
# TODO(ansmith): change to common messaging setup
- name: Ensure Rabbitmq vhost
rabbitmq_vhost:
name: "{{ tacker_oslomsg_rpc_vhost }}"
state: "present"
delegate_to: "{{ groups['oslomsg_rpc_all'][0] }}"
tags:
- tacker-rabbitmq
- tacker-rabbitmq-vhost
- name: Ensure rabbitmq user
rabbitmq_user:
user: "{{ tacker_oslomsg_rpc_userid }}"
password: "{{ tacker_oslomsg_rpc_password }}"
vhost: "{{ tacker_oslomsg_rpc_vhost }}"
configure_priv: ".*"
read_priv: ".*"
write_priv: ".*"
state: "present"
delegate_to: "{{ groups['oslomsg_rpc_all'][0] }}"
no_log: true
tags:
- tacker-rabbitmq
- tacker-rabbitmq-user