-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved smoketest to avoid ansible as a dependency
Molecule drivers should never made ansible package as a dependency as molecule itself is decoupled from Ansible python module. This removes drivers that are prevent this decoupling.
- Loading branch information
Showing
2 changed files
with
17 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
ANSIBLE=$(pipdeptree --reverse -p ansible) | ||
|
||
if [ -z "$ANSIBLE" ]; then | ||
echo "Ansible dependency not detected." | ||
else | ||
echo "FATAL: Detected unexpected dependency on Ansible package" | ||
echo "$ANSIBLE" | ||
exit 2 | ||
fi |
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