Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • digital-preservation/ansible_lza_iesample
1 result
Select Git revision
Show changes
---
- name: create SystemD unit directory
ansible.builtin.file:
path: "/usr/local/lib/systemd/system/"
state: directory
mode: "0750"
- name: install timer and script for moving old logs to archive
ansible.builtin.copy:
src: "{{ item.path }}"
dest: "/{{ item.path }}"
mode: "{{ item.mode }}"
owner: "{{ item.owner | default('root') }}"
group: "{{ item.group | default('root') }}"
loop:
- path: "usr/local/lib/systemd/system/move_old_logs.timer"
mode: "0644"
- path: "usr/local/bin/move_old_logs.sh"
mode: "0755"
notify: daemon-reload
- name: install service for moving old logs to archive
ansible.builtin.template:
src: "usr/local/lib/systemd/system/move_old_logs_@.service.j2"
dest: "/usr/local/lib/systemd/system/move_old_logs_@.service"
mode: "0644"
owner: "root"
group: "root"
notify: daemon-reload
- name: enable move_old_logs services
ansible.builtin.systemd:
name: "move_old_logs_@{{ item }}.service"
daemon_reload: true
enabled: true
loop:
# - "disapp"
- "subapp"
# - "subapp_webservice"
- name: start timer for moving old logs to archive (the service is triggered by the timer and doesn't need to be started separately)
ansible.builtin.systemd:
name: "move_old_logs.timer"
enabled: true
state: started
......@@ -35,7 +35,3 @@
- name: iptables-Regeln für externe Produzenten setzen
ansible.builtin.import_tasks: "configure_iptables_externalusers.yml"
tags: [iptables]
- name: install scripts and services for moving old logs to archive
ansible.builtin.import_tasks: "install_move_logs.yml"
tags: [log, cleanup]