aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/systemd_edit/tasks/main.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-11 19:40:46 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-11 19:42:52 +0200
commit2640e0c08751d5784908f2bcdc6e4f1426ccbcae (patch)
treea1c055aba6790f575f70de345f45905b221b7999 /roles/systemd_edit/tasks/main.yml
parentv0.0.9 (diff)
downloadinfra-ansible-2640e0c08751d5784908f2bcdc6e4f1426ccbcae.tar.gz
infra-ansible-2640e0c08751d5784908f2bcdc6e4f1426ccbcae.zip
fix some ansible-lint warnings
Diffstat (limited to 'roles/systemd_edit/tasks/main.yml')
-rw-r--r--roles/systemd_edit/tasks/main.yml6
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 }}'