Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/systemd_info/tasks/main.yml

raw
1 ---
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 - name: skip Alpine
7 meta: end_host
8 when: ansible_facts.distribution == 'Alpine'
9
10 - name: check ansible_facts.service_mgr
11 ansible.builtin.assert:
12 that: ansible_facts.service_mgr == 'systemd'
13
14 - name: Test systemd_facts
15 block:
16
17 - name: Run tests
18 import_tasks: tests.yml
19
20 when: >
21 (ansible_facts.distribution in ['RedHat', 'CentOS', 'ScientificLinux'] and ansible_facts.distribution_major_version is version('7', '>=')) or
22 ansible_facts.distribution == 'Fedora' or
23 (ansible_facts.distribution == 'Ubuntu' and ansible_facts.distribution_version is version('15.04', '>=')) or
24 (ansible_facts.distribution == 'Debian' and ansible_facts.distribution_version is version('8', '>=')) or
25 ansible_facts.os_family == 'Suse' or
26 ansible_facts.distribution == 'Archlinux'