diff --git a/tasks/install_move_logs.yml b/tasks/install_move_logs.yml deleted file mode 100644 index 15bf060a9ea1a313453650a94f7f6a4b68f319e6..0000000000000000000000000000000000000000 --- a/tasks/install_move_logs.yml +++ /dev/null @@ -1,45 +0,0 @@ ---- -- 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 diff --git a/tasks/main.yml b/tasks/main.yml index 04fb5c153a96d701f2f27f17f22dcfed85b14ba7..3fa259cddd8ddd6ebe18465f296e15054977d197 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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]