summaryrefslogtreecommitdiffstats
path: root/ansible/roles/configure_rabbitmq/tasks/main.yml
diff options
context:
space:
mode:
authorAbhijit Sinha <abhijit.sinha@intel.com>2018-10-26 15:31:26 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-10-26 15:31:26 +0000
commit87c09c6477e7e351a821d27013031fafa5c37615 (patch)
treeaffe5c8bc14ec5c0b2cbe556cacf4dda27b664cc /ansible/roles/configure_rabbitmq/tasks/main.yml
parent56b4d5de28bd8f491cea077e21811830959b6ea8 (diff)
parentd06e6da19db545dfcc6fdfdc706b9cccdb75c498 (diff)
Merge "Trex KPI are not collected due to rabbitmq user"
Diffstat (limited to 'ansible/roles/configure_rabbitmq/tasks/main.yml')
-rw-r--r--ansible/roles/configure_rabbitmq/tasks/main.yml20
1 files changed, 12 insertions, 8 deletions
diff --git a/ansible/roles/configure_rabbitmq/tasks/main.yml b/ansible/roles/configure_rabbitmq/tasks/main.yml
index 3ad60c1ea..4ff4222dc 100644
--- a/ansible/roles/configure_rabbitmq/tasks/main.yml
+++ b/ansible/roles/configure_rabbitmq/tasks/main.yml
@@ -12,6 +12,16 @@
# See the License for the specific language governing permissions and
# limitations under the License.
---
+- name: Create rabbitmq configuration
+ template:
+ src: rabbitmq.config.j2
+ dest: /etc/rabbitmq/rabbitmq.config
+
+- name: Define user definitions file
+ template:
+ src: user_definitions.json.j2
+ dest: /etc/rabbitmq/definitions.json
+
- name: Restart rabbitmq
service:
name: rabbitmq-server
@@ -20,11 +30,5 @@
- name: rabbitmqctl start_app
shell: rabbitmqctl start_app
-- name: Configure rabbitmq
- rabbitmq_user:
- user: yardstick
- password: yardstick
- configure_priv: .*
- read_priv: .*
- write_priv: .*
- state: present
+- name: Enable management plugin
+ shell: rabbitmq-plugins enable rabbitmq_management