diff --git a/tasks/install_subapp.yml b/tasks/install_subapp.yml index ef4d424a762bf1a580e60f92a8dea95595223b7b..9fb5e838837ee5350175492e1878a17d5ef6a988 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