From 62ef9dfed1483c4a69d186158a4145fac56e9055 Mon Sep 17 00:00:00 2001 From: Jens Steidl <Jens.Steidl@slub-dresden.de> Date: Mon, 14 Jun 2021 15:24:18 +0200 Subject: [PATCH] chore: disabled Stichprobe --- tasks/install_subapp.yml | 40 +++++++++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/tasks/install_subapp.yml b/tasks/install_subapp.yml index ef4d424..9fb5e83 100644 --- a/tasks/install_subapp.yml +++ b/tasks/install_subapp.yml @@ -159,22 +159,44 @@ when: ansible_hostname == item.key no_log: true -- name: enable Stichprobe Services - command: "systemctl enable /etc/systemd/user/stichprobe-daily-report.service" # noqa 303 +#- name: enable Stichprobe Services +# command: "systemctl enable /etc/systemd/user/stichprobe-daily-report.service" # noqa 303 +# loop: "{{ lookup('dict', vault_stichprobe_hosts) }}" +# when: ansible_hostname == item.key +# no_log: true +# +#- name: enable Stichprobe Timers +# command: "systemctl enable /etc/systemd/user/stichprobe-daily-report.timer" # noqa 303 +# loop: "{{ lookup('dict', vault_stichprobe_hosts) }}" +# when: ansible_hostname == item.key +# no_log: true +# +#- name: restart Stichprobe Timers +# systemd: +# name: "stichprobe-daily-report.timer" +# state: restarted +# loop: "{{ lookup('dict', vault_stichprobe_hosts) }}" +# when: ansible_hostname == item.key +# ignore_errors: "yes" + + +# WORKAROUND: stopped until storage migration complete +- name: disable Stichprobe Services + command: "systemctl disable /etc/systemd/user/stichprobe-daily-report.service" loop: "{{ lookup('dict', vault_stichprobe_hosts) }}" when: ansible_hostname == item.key no_log: true - -- name: enable Stichprobe Timers - command: "systemctl enable /etc/systemd/user/stichprobe-daily-report.timer" # noqa 303 + ignore_errors: "yes" +- name: disable Stichprobe Timers + command: "systemctl disable /etc/systemd/user/stichprobe-daily-report.timer" loop: "{{ lookup('dict', vault_stichprobe_hosts) }}" when: ansible_hostname == item.key no_log: true - -- name: restart Stichprobe Timers + ignore_errors: "yes" +- name: stop running Stichprobe Timers systemd: name: "stichprobe-daily-report.timer" - state: restarted + state: stopped loop: "{{ lookup('dict', vault_stichprobe_hosts) }}" when: ansible_hostname == item.key - ignore_errors: "yes" + ignore_errors: "yes" \ No newline at end of file -- GitLab