diff --git a/roles/mongodb/handlers/main.yml b/roles/mongodb/handlers/main.yml index bf2d56b2..88c70f68 100644 --- a/roles/mongodb/handlers/main.yml +++ b/roles/mongodb/handlers/main.yml @@ -1,5 +1,6 @@ --- - name: restart mongodb + sudo: yes service: name: mongodb state: restarted diff --git a/roles/rabbitmq/handlers/main.yml b/roles/rabbitmq/handlers/main.yml index 9ef9602f..00f6bbdf 100644 --- a/roles/rabbitmq/handlers/main.yml +++ b/roles/rabbitmq/handlers/main.yml @@ -1,5 +1,6 @@ --- - name: restart rabbitmq + sudo: yes service: name: rabbitmq-server state: restarted