aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/configure_rabbitmq/tasks/main.yml
diff options
context:
space:
mode:
authorAbhijit Sinha <abhijit.sinha@intel.com>2018-10-30 15:15:54 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-10-30 15:15:54 +0000
commit3f1998305fec2261729260fd1954cf6fea9fc9e0 (patch)
tree1e3e33948f71ad57ac26d9df8dd9035017d82be3 /ansible/roles/configure_rabbitmq/tasks/main.yml
parente17ba5d730878ae2a92cc9130e47630cc6745d91 (diff)
parentce809669d3051524508edf5a3d69e83dde8a9080 (diff)
Merge "Trex KPI are not collected due to rabbitmq user" into stable/gambia
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