forked from linux-system-roles/cockpit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test "cockpit_packages: full" scenario
This has bug reports such as [1], ensure that this generally works everywhere. [1] linux-system-roles#51
- Loading branch information
1 parent
22d1822
commit f245c54
Showing
2 changed files
with
42 additions
and
0 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
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,41 @@ | ||
--- | ||
- name: "Test cockpit_packages: full" | ||
hosts: all | ||
tasks: | ||
- name: tests | ||
block: | ||
- include_role: | ||
name: linux-system-roles.cockpit | ||
vars: | ||
cockpit_packages: full | ||
|
||
- meta: flush_handlers | ||
|
||
- package_facts: | ||
|
||
# basic package (part of minimal) | ||
- name: test - cockpit-system is installed | ||
fail: | ||
msg: cockpit-system is not installed | ||
when: "'cockpit-system' not in ansible_facts.packages" | ||
|
||
# metapackage (part of default) | ||
- name: test - cockpit metapackage is installed | ||
fail: | ||
msg: cockpit is not installed | ||
when: "'cockpit' not in ansible_facts.packages" | ||
|
||
# extra package (part of full) | ||
- name: test - cockpit-pcp is installed | ||
fail: | ||
msg: cockpit-pcp is not installed | ||
when: "'cockpit-pcp' not in ansible_facts.packages" | ||
|
||
# another extra package (part of full) | ||
- name: test - cockpit-doc is installed | ||
fail: | ||
msg: cockpit-doc is not installed | ||
when: "'cockpit-doc' not in ansible_facts.packages" | ||
|
||
always: | ||
- include_tasks: tasks/cleanup.yml |