diff --git a/rpc_deployment/roles/rabbit_common/tasks/main.yml b/rpc_deployment/roles/rabbit_common/tasks/main.yml index d17e614047..8c2ad39759 100644 --- a/rpc_deployment/roles/rabbit_common/tasks/main.yml +++ b/rpc_deployment/roles/rabbit_common/tasks/main.yml @@ -67,8 +67,11 @@ - name: Create rabbitmq config template: - src: rabbitmq.config - dest: /etc/rabbitmq/rabbitmq.config + src: "{{ item.src }}" + dest: "{{ item.dest }}" + with_items: + - { src: "rabbitmq.config", dest: "/etc/rabbitmq/rabbitmq.config" } + - { src: "rabbitmq-server", dest: "/etc/default/rabbitmq-server" } tags: - rabbit_config diff --git a/rpc_deployment/roles/rabbit_common/templates/rabbitmq-server b/rpc_deployment/roles/rabbit_common/templates/rabbitmq-server new file mode 100644 index 0000000000..1f0e735045 --- /dev/null +++ b/rpc_deployment/roles/rabbit_common/templates/rabbitmq-server @@ -0,0 +1,2 @@ +# Sets open file limit for RabbitMQ +ulimit -n 4096