diff options
Diffstat (limited to '')
-rw-r--r-- | roles/systemd_edit/README.md | 3 | ||||
-rw-r--r-- | roles/systemd_edit/defaults/main.yml | 4 | ||||
-rw-r--r-- | roles/systemd_edit/tasks/main.yml | 29 |
3 files changed, 0 insertions, 36 deletions
diff --git a/roles/systemd_edit/README.md b/roles/systemd_edit/README.md deleted file mode 100644 index 23af7c8..0000000 --- a/roles/systemd_edit/README.md +++ /dev/null @@ -1,3 +0,0 @@ -This role is similar to running `systemctl edit SERVICE`; it creates an -override.conf file for the service in /etc/systemd and sets the required -values there. diff --git a/roles/systemd_edit/defaults/main.yml b/roles/systemd_edit/defaults/main.yml deleted file mode 100644 index ced03e5..0000000 --- a/roles/systemd_edit/defaults/main.yml +++ /dev/null @@ -1,4 +0,0 @@ -#service_name: -#service_section: -#service_option: -#service_values: diff --git a/roles/systemd_edit/tasks/main.yml b/roles/systemd_edit/tasks/main.yml deleted file mode 100644 index 98dbd27..0000000 --- a/roles/systemd_edit/tasks/main.yml +++ /dev/null @@ -1,29 +0,0 @@ -- name: Edit systemd service - become: true - block: - - name: 'Create override directory: {{ service_name }}' - ansible.builtin.file: - path: '/etc/systemd/system/{{ service_name }}.service.d' - state: directory - owner: root - group: root - mode: '755' - - - name: 'Set up override.conf: {{ service_name }}' - community.general.ini_file: - dest: '/etc/systemd/system/{{ service_name }}.service.d/override.conf' - section: '{{ service_section }}' - option: '{{ service_option }}' - values: '{{ service_values }}' - no_extra_spaces: true - owner: root - group: root - mode: '644' - register: overridden - - - name: 'Restart service: {{ service_name }}' - ansible.builtin.systemd_service: - daemon_reload: true - name: '{{ service_name }}' - state: restarted - when: overridden.changed |