Debian Codegraph @

test/integration/targets/package_facts/test_warning_unusable.yml

raw
1 - hosts: all
2 tasks:
3 - name: Check for apk
4 ansible.builtin.command: apk info
5 ignore_errors: true
6 register: apk_exists
7
8 - name: Elicit a warning about the missing binary
9 ansible.builtin.package_facts:
10 manager: apk
11 when: apk_exists is failed
12 failed_when: false