diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 10:36:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 10:36:22 +0000 |
commit | b88bb292821fd7742604ec4e280acebd9a049f62 (patch) | |
tree | 625e4e19e6619f7481e5a8103f876520950769f6 /distro/tests/ansible-roles/knot_dns/tasks/reload_knot.yaml | |
parent | Initial commit. (diff) | |
download | knot-b88bb292821fd7742604ec4e280acebd9a049f62.tar.xz knot-b88bb292821fd7742604ec4e280acebd9a049f62.zip |
Adding upstream version 3.0.5.upstream/3.0.5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'distro/tests/ansible-roles/knot_dns/tasks/reload_knot.yaml')
-rw-r--r-- | distro/tests/ansible-roles/knot_dns/tasks/reload_knot.yaml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/distro/tests/ansible-roles/knot_dns/tasks/reload_knot.yaml b/distro/tests/ansible-roles/knot_dns/tasks/reload_knot.yaml new file mode 100644 index 0000000..b7e681c --- /dev/null +++ b/distro/tests/ansible-roles/knot_dns/tasks/reload_knot.yaml @@ -0,0 +1,15 @@ +--- +- block: + - name: Reload knot.service + service: + name: knot.service + state: reloaded + rescue: + - name: Get knot.service journal + shell: journalctl -u knot --since -20s + register: journal + - name: Print journal + debug: + var: journal + - name: Reload knot.service failed, see log above + shell: /bin/false |