summaryrefslogtreecommitdiffstats
path: root/distro/tests/ansible-roles/knot_resolver/tasks/restart_kresd.yaml
blob: 00dbf5db28c0d5216db3ca2309322f56dcf43722 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
# SPDX-License-Identifier: GPL-3.0-or-later
- block:
    - name: Restart kresd@1.service
      service:
        name: kresd@1.service
        state: restarted
  rescue:
    - name: Get kresd@1.service journal
      shell: journalctl -u kresd@1 --since -20s
      register: journal
    - name: Print journal
      debug:
        var: journal
    - name: Restart kresd@*.service failed, see log above
      shell: /bin/false