You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/systemd/tasks/test_systemd_version.yml

12 lines
337 B
YAML

---
- name: Show Gathered Facts
ansible.builtin.debug:
msg: "{{ ansible_systemd }}"
- name: Assert the systemd version fact
ansible.builtin.assert:
that:
- ansible_systemd.version | int
- ansible_systemd.version is match('^[1-9][0-9][0-9]$')
- ansible_systemd.features | regex_search('(\\+|-)(PAM|AUDIT)')