--- - 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