kwoodson / ansible-role-yedit

Ansible Role for Yaml editing
164 stars 62 forks source link

Preserve file mode #103

Closed wdower closed 7 months ago

wdower commented 7 months ago

Open the temporary file with the same permissions as set on the original file to ensure permissions are preserved when we overwrite via the atomic rename.