diff options
Diffstat (limited to '')
-rw-r--r-- | roles/systemd_edit/tasks/main.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/systemd_edit/tasks/main.yml b/roles/systemd_edit/tasks/main.yml index 06a0a8a..8a08e6d 100644 --- a/roles/systemd_edit/tasks/main.yml +++ b/roles/systemd_edit/tasks/main.yml @@ -5,6 +5,9 @@ ansible.builtin.file: path: '/etc/systemd/system/{{ service_name }}.service.d' state: directory + owner: root + group: root + mode: '755' - name: 'Set up override: {{ service_name }}' community.general.ini_file: @@ -13,6 +16,9 @@ option: '{{ service_option }}' values: '{{ service_values }}' no_extra_spaces: true + owner: root + group: root + mode: '644' register: overridden - name: 'Restart service: {{ service_name }}' |