summaryrefslogtreecommitdiffstats
path: root/distro/tests/ansible-roles/knot_dns/tasks/main.yaml
blob: ccaa671c682eb6c94fec15720cedc7bd3216755d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
- name: Include distribution specific vars
  include_vars: "{{ distro }}.yaml"

- name: Update all packages
  package:
    name: '*'
    state: latest
  when: update_packages|bool

- name: Install packages
  package:
    name: "{{ packages }}"
    state: latest

- name: Always print package version at the end
  block:

    - include: configure_zone.yaml
    - include: restart_knot.yaml

    - include: test_udp.yaml
    - include: test_tcp.yaml

    - include: reload_knot.yaml

    - include: test_udp.yaml
    - include: test_tcp.yaml

  always:

    - name: Get installed package version
      shell: "{{ show_package_version }}"
      args:
        warn: false
      register: package_version

    - name: Show installed version
      debug:
        var: package_version.stdout