aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/systemd_edit/tasks/main.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-23 17:46:28 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-23 18:03:25 +0200
commit287264d1eefb311b472a5f0431ae012cf2033a26 (patch)
treee65a79c80c6fb741ac45e359ba32e6192acaf396 /roles/systemd_edit/tasks/main.yml
parentdigitalocean_volume: properly prefix variables (diff)
downloadinfra-ansible-287264d1eefb311b472a5f0431ae012cf2033a26.tar.gz
infra-ansible-287264d1eefb311b472a5f0431ae012cf2033a26.zip
replace systemd_requires_mounts_for with systemd_depend_mount
It should be better and more comprehensible.
Diffstat (limited to '')
-rw-r--r--roles/systemd_edit/tasks/main.yml29
1 files changed, 0 insertions, 29 deletions
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