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
This commit is contained in:
Alexander Evseev 2021-02-16 10:35:13 +03:00 committed by Radosław Piliszek
parent 851f2c799c
commit 7f98238b64
1 changed files with 1 additions and 0 deletions

View File

@ -1,5 +1,6 @@
---
- name: Ensuring config directories exist
become: True
file:
path: "{{ node_config_directory }}/{{ item.key }}"
state: "directory"