This commit is contained in:
nazunalika 2021-01-23 01:23:20 -07:00
parent 71606625a4
commit 2c2021f6b6
3 changed files with 7 additions and 7 deletions

View File

@ -8,7 +8,7 @@
- name: Deploy RabbitMQ configuration
template:
src: "etc/rabbitmq/{{ item }}.j2"
dest: "etc/rabbitmq/{{ item }}"
dest: "/etc/rabbitmq/{{ item }}"
owner: rabbitmq
group: rabbitmq
mode: '0644'
@ -42,7 +42,7 @@
mode: '0644'
content: |
[Service]
LimitNOFILE={{ rabbitmq_cluster_file_limit }}
LimitNOFILE={{ rabbitmq_file_limit }}
- name: Enable RabbitMQ Plugins
community.rabbitmq.rabbitmq_plugin:

View File

@ -17,7 +17,7 @@
read_priv: ".*"
write_priv: ".*"
tags: administrator
when: inventory_hostname.startswith('rabbitmq01')
when: "'rabbitmq001' in inventory_hostname"
with_items:
- /
- /pubsub
@ -56,6 +56,6 @@
write_priv: "^$"
tags: monitoring
when:
- inventory_hostname.startswith('rabbitmq01')
- "'rabbitmq001' in inventory_hostname"
- rabbitmq_monitoring_username
- rabbitmq_monitoring_password

View File

@ -6,9 +6,9 @@ num_acceptors.ssl = 10
reverse_dns_lookups = true
rabbitmq_tls_ca_cert: "/etc/pki/tls/certs/ca-bundle.crt"
rabbitmq_tls_cert: "/etc/pki/tls/certs/{{ ansible_fqdn }}.crt"
rabbitmq_tls_key: "/etc/pki/tls/private/{{ ansible_fqdn }}.key"
rabbitmq_tls_ca_cert = "/etc/pki/tls/certs/ca-bundle.crt"
rabbitmq_tls_cert = "/etc/pki/tls/certs/{{ ansible_fqdn }}.crt"
rabbitmq_tls_key = "/etc/pki/tls/private/{{ ansible_fqdn }}.key"
ssl_options.verify = verify_peer
ssl_options.fail_if_no_peer_cert = false