Debian Codegraph @

test/integration/targets/systemd/tasks/test_systemd_version.yml

raw
1 ---
2 - name: Show Gathered Facts
3 ansible.builtin.debug:
4 msg: "{{ ansible_systemd }}"
5
6 - name: Assert the systemd version fact
7 ansible.builtin.assert:
8 that:
9 - ansible_systemd.version | int > 0
10 - ansible_systemd.version is match('^[1-9][0-9][0-9]$')
11 - ansible_systemd.features | regex_search('(\\+|-)(PAM|AUDIT)') is not none