-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
651e52d
commit 6b1e5bb
Showing
4 changed files
with
30 additions
and
4 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 |
---|---|---|
|
@@ -13,6 +13,5 @@ galaxy_info: | |
galaxy_tags: | ||
- system | ||
- ubuntu | ||
- ubuntu-pro | ||
|
||
dependencies: [] |
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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
- name: Gather LSB Facts | ||
ansible.builtin.setup: | ||
filter: lsb | ||
|
||
- name: Assert that Host Operating System is Ubuntu | ||
ansible.builtin.assert: | ||
that: | ||
- ansible_facts.lsb.id == 'Ubuntu' | ||
fail_msg: 'Host Operating System is NOT Ubuntu' | ||
success_msg: 'Host Operating System is Ubuntu' | ||
|
||
- name: Assert that Host Operating System is an Ubuntu LSB Release | ||
ansible.builtin.assert: | ||
that: | ||
- ansible_facts.lsb.release in ubuntu_pro_lts_releases | ||
fail_msg: 'Host Operating System is NOT an Ubuntu LSB Release' | ||
success_msg: 'Host Operating System is an Ubuntu LSB Release' |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
ubuntu_pro_lts_releases: | ||
- "16.04" | ||
- "18.04" | ||
- "20.04" | ||
- "22.04" |