This repository has been archived on 2020-08-09. You can view files and clone it, but cannot push or open issues or pull requests.
2020-05-16 18:28:54 +00:00
|
|
|
- name: Create override directories
|
2020-05-16 20:13:53 +00:00
|
|
|
loop: "{{ systemd.overrides }}"
|
2020-05-16 18:28:54 +00:00
|
|
|
file:
|
|
|
|
follow: yes
|
2020-05-16 20:13:53 +00:00
|
|
|
path: "/etc/systemd/system/{{ item }}.service.d/"
|
2020-05-16 18:28:54 +00:00
|
|
|
state: directory
|
2020-05-16 20:13:53 +00:00
|
|
|
when: (systemd.overrides| default([])) | length
|
2020-05-16 20:26:09 +00:00
|
|
|
tags:
|
|
|
|
- systemd
|
|
|
|
- override
|
2020-05-16 20:13:53 +00:00
|
|
|
- name: Copy service overrides
|
|
|
|
loop: "{{ systemd.overrides }}"
|
2020-05-16 18:28:54 +00:00
|
|
|
template:
|
|
|
|
follow: yes
|
2020-05-16 20:13:53 +00:00
|
|
|
src: "{{ item }}.service.j2"
|
|
|
|
dest: "/etc/systemd/system/{{ item }}.service.d/override.conf"
|
2020-05-29 18:04:06 +00:00
|
|
|
notify:
|
|
|
|
- Reload daemon
|
|
|
|
- Run service actions
|
2020-05-16 20:13:53 +00:00
|
|
|
when: (systemd.overrides| default([])) | length
|
2020-05-16 20:26:09 +00:00
|
|
|
tags:
|
|
|
|
- systemd
|
|
|
|
- override
|