kwoodson / ansible-role-yedit

Ansible Role for Yaml editing
164 stars 62 forks source link

Add ability to edit files in read-only directories. #87

Open kestel opened 3 years ago

kestel commented 3 years ago

For example, we have access to only one file in /etc/ directory and would like to modify it. Original library try to create a temp file inside this directory and fails because we have not enough permissions.

This PR modify original behavior to create a temp file for write in temp directory and after successfully write move in to proper location.