Skip to content
Snippets Groups Projects
Commit 99066bdf authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: correct paths for move_old_logs service files

parent 159bf0fb
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
owner: "{{ item.owner | default('root') }}"
group: "{{ item.group | default('root') }}"
loop:
- path: "etc/systemd/user/move_old_logs.timer"
- path: "etc/systemd/system/move_old_logs.timer"
mode: "0644"
- path: "usr/local/bin/move_old_logs.sh"
mode: "0755"
......@@ -15,13 +15,21 @@
- name: install service for moving old logs to archive
ansible.builtin.template:
src: "etc/systemd/user/move_old_logs.service.j2"
dest: "/etc/systemd/user/move_old_logs.service"
src: "etc/systemd/system/move_old_logs.service.j2"
dest: "/etc/systemd/system/move_old_logs.service"
mode: 0755
owner: "root"
group: "root"
notify: daemon-reload
- name: remove service/timer units from /etc/systemd/user/, they don't belong there
ansible.builtin.file:
path: "/etc/systemd/user/move_old_logs.{{ item }}"
state: absent
loop:
- "timer"
- "service"
- name: enable timer for moving old logs to archive
ansible.builtin.systemd:
name: "move_old_logs.timer"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment