From 7f98238b6405bc589e954478ca0125728269a5c7 Mon Sep 17 00:00:00 2001 From: Alexander Evseev Date: Tue, 16 Feb 2021 10:35:13 +0300 Subject: [PATCH] Elevated privileges required to set owner/group/mode by ansible Elevated (root) privileges are required to set owner/group/mode when target owner does not math the user running Ansible. Without it the playbook fails with 'Permission denied' error. Change-Id: Ie7455a5f1ed709dfb9c9d7c653c6f808c00af4c2 --- ansible/roles/ovs-dpdk/tasks/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/ovs-dpdk/tasks/config.yml b/ansible/roles/ovs-dpdk/tasks/config.yml index 8d6adc542b..ce3d9ede52 100644 --- a/ansible/roles/ovs-dpdk/tasks/config.yml +++ b/ansible/roles/ovs-dpdk/tasks/config.yml @@ -1,5 +1,6 @@ --- - name: Ensuring config directories exist + become: True file: path: "{{ node_config_directory }}/{{ item.key }}" state: "directory"