-
Epic
-
Resolution: Done
-
Major
-
None
-
rhos-18.0.0
-
None
-
Files and directories managed by ansible must have correct ownership
-
False
-
-
False
-
Not Selected
-
Proposed
-
Proposed
-
To Do
-
Proposed
-
Proposed
-
0% To Do, 0% In Progress, 100% Done
-
-
Multiple configuration files, folders containing them, as well as other files and directories, created by roles and playbooks from edpm-ansible, have incorrect permissions or ownership set.
This can cause issues while executing operations as underprivileged user. Preventing modification, or even access, to important files.
This can be especially painful during day1 and day 2 operations.
In order for the the permissions and ownership to be set correctly, tasks creating them need to either explicitly set them, or they have to be executed under appropriate user.
At this time the general `ansible_user` as defined in [1] will be used unless another, more appropriate option is required or already used. If this is not defined, the `ansible_user_id` will be used as a fallback.
[1]https://docs.ansible.com/ansible/latest/inventory_guide/intro_inventory.html#connecting-to-hosts-behavioral-inventory-parameters