-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f5ac537
commit 3be1fbb
Showing
2 changed files
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,14 +93,13 @@ | |
when: | ||
- ansible_facts['service_mgr'] == 'systemd' or | ||
(ansible_facts['os_family'] == 'RedHat' and ansible_facts['distribution_major_version'] == '7') | ||
- ansible_facts['distribution'] != "Debian" or ansible_facts['distribution_major_version'] | int < 12 | ||
- not (ansible_facts['distribution'] == 'Ubuntu' and ansible_facts['distribution_version'] is version('24.04', '>=')) | ||
block: | ||
- name: Read the created instantiated service file | ||
ansible.builtin.slurp: | ||
src: "/etc/systemd/system/[email protected]" | ||
register: service_inst | ||
when: | ||
- ansible_facts['distribution'] != "Debian" or ansible_facts['distribution_major_version'] | int < 12 | ||
- not (ansible_facts['distribution'] == 'Ubuntu' and ansible_facts['distribution_version'] is version('24.04', '>=')) | ||
|
||
- name: Check content of the created service file | ||
ansible.builtin.assert: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,14 +105,13 @@ | |
tags: tests::verify | ||
when: | ||
- ansible_facts['service_mgr'] == 'systemd' | ||
- ansible_facts['distribution'] != "Debian" or ansible_facts['distribution_major_version'] | int < 12 | ||
- not (ansible_facts['distribution'] == 'Ubuntu' and ansible_facts['distribution_version'] is version('24.04', '>=')) | ||
block: | ||
- name: Read the created instantiated service file | ||
ansible.builtin.slurp: | ||
src: "/etc/systemd/system/[email protected]" | ||
register: service_inst | ||
when: | ||
- ansible_facts['distribution'] != "Debian" or ansible_facts['distribution_major_version'] | int < 12 | ||
- not (ansible_facts['distribution'] == 'Ubuntu' and ansible_facts['distribution_version'] is version('24.04', '>=')) | ||
|
||
- name: Check content of the created service file | ||
ansible.builtin.assert: | ||
|