From fc593d531b7bbd798dc301b9b214301d65d8abf6 Mon Sep 17 00:00:00 2001 From: Mathieu Rohon Date: Tue, 12 Dec 2017 16:51:36 +0100 Subject: [PATCH] missing permissions when running as non root some tasks miss permissions to be run as a normal user Change-Id: Ic53308adb7fa3a10a7b1f1caa27ca7dd67037cdd --- ansible/roles/elasticsearch/tasks/config.yml | 1 + ansible/roles/neutron/tasks/config.yml | 2 ++ ansible/roles/openvswitch/tasks/config.yml | 2 ++ 3 files changed, 5 insertions(+) diff --git a/ansible/roles/elasticsearch/tasks/config.yml b/ansible/roles/elasticsearch/tasks/config.yml index 79293ad106..958f71d3f2 100644 --- a/ansible/roles/elasticsearch/tasks/config.yml +++ b/ansible/roles/elasticsearch/tasks/config.yml @@ -1,5 +1,6 @@ --- - name: Setting sysctl values + become: true sysctl: name={{ item.name }} value={{ item.value }} sysctl_set=yes with_items: - { name: "vm.max_map_count", value: 262144} diff --git a/ansible/roles/neutron/tasks/config.yml b/ansible/roles/neutron/tasks/config.yml index dbb2eb7495..04c9f9e8dd 100644 --- a/ansible/roles/neutron/tasks/config.yml +++ b/ansible/roles/neutron/tasks/config.yml @@ -344,6 +344,7 @@ - "Restart {{ item.key }} container" - name: Copy neutron-l3-agent-wrapper script + become: true vars: service_name: "neutron-l3-agent" service: "{{ neutron_services[service_name] }}" @@ -358,6 +359,7 @@ - "Restart {{ service_name }} container" - name: Copy neutron-vpnaas-agent-wrapper script + become: true vars: service_name: "neutron-vpnaas-agent" service: "{{ neutron_services[service_name] }}" diff --git a/ansible/roles/openvswitch/tasks/config.yml b/ansible/roles/openvswitch/tasks/config.yml index 762eedfc46..4c1c1cce3d 100644 --- a/ansible/roles/openvswitch/tasks/config.yml +++ b/ansible/roles/openvswitch/tasks/config.yml @@ -27,6 +27,7 @@ - "Restart {{ item.key }} container" - name: Copying over start-ovs file for openvswitch-vswitchd + become: true vars: service: "{{ openvswitch_services['openvswitch-vswitchd'] }}" template: @@ -40,6 +41,7 @@ - "Restart openvswitch-vswitchd container" - name: Copying over start-ovsdb-server files for openvswitch-db-server + become: true vars: service: "{{ openvswitch_services['openvswitch-db-server'] }}" template: