From a67dde50f26e0f76d91f0744e8e8341dac95dae2 Mon Sep 17 00:00:00 2001 From: Larry Smith Jr Date: Sat, 20 May 2017 21:19:34 -0400 Subject: Cleaned up code as part of issue #10 Signed-off-by: Larry Smith Jr --- tasks/fedora.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tasks/fedora.yml') diff --git a/tasks/fedora.yml b/tasks/fedora.yml index 3d92963..6ac9c03 100644 --- a/tasks/fedora.yml +++ b/tasks/fedora.yml @@ -3,6 +3,7 @@ dnf: name: "{{ item }}" state: present + become: true with_items: - wget @@ -10,30 +11,36 @@ dnf: name: "erlang" state: present + become: true - name: fedora | adding RabbitMQ public GPG key rpm_key: key: "{{ rabbitmq_redhat_repo_key }}" state: present + become: true - name: fedora | downloading RabbitMQ get_url: url: "{{ rabbitmq_redhat_url }}/{{ rabbitmq_redhat_package }}" dest: "/opt/{{ rabbitmq_redhat_package }}" + become: true - name: fedora | installing RabbitMQ dnf: name: "/opt/{{ rabbitmq_redhat_package }}" state: present + become: true - name: fedora | starting and enabling RabbitMQ service service: name: "rabbitmq-server" state: started enabled: yes + become: true - name: fedora | enabling the RabbitMQ Management Console rabbitmq_plugin: names: rabbitmq_management state: enabled notify: restart rabbitmq-server + become: true -- cgit v1.2.3