-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add install_collection_from_disk method (#67)
As ansible-galaxy can install collections from disk only with 2.10+, we add a new method that can be used with all supported versions of Ansible. This also enables install_collection to have a force argument.
- Loading branch information
Showing
9 changed files
with
115 additions
and
3 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 @@ | ||
foo: that is not a valid collection! |
Binary file not shown.
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,30 @@ | ||
name: goodies | ||
namespace: acme | ||
version: 1.0.0 | ||
readme: README.md | ||
authors: | ||
- Red Hat | ||
description: Sample collection to use with molecule | ||
build_ignore: | ||
- "*.egg-info" | ||
- .DS_Store | ||
- .eggs | ||
- .gitignore | ||
- .mypy_cache | ||
- .pytest_cache | ||
- .stestr | ||
- .stestr.conf | ||
- .tox | ||
- .vscode | ||
- MANIFEST.in | ||
- build | ||
- dist | ||
- doc | ||
- report.html | ||
- setup.cfg | ||
- setup.py | ||
- "tests/unit/*.*" | ||
- README.rst | ||
- tox.ini | ||
|
||
license_file: LICENSE |
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,7 @@ | ||
--- | ||
- name: Converge | ||
hosts: localhost | ||
tasks: | ||
- name: "Include sample role from current collection" | ||
include_role: | ||
name: acme.goodies.baz |
11 changes: 11 additions & 0 deletions
11
test/collections/acme.goodies/molecule/default/molecule.yml
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 @@ | ||
--- | ||
dependency: | ||
name: galaxy | ||
driver: | ||
name: delegated | ||
platforms: | ||
- name: instance | ||
provisioner: | ||
name: ansible | ||
verifier: | ||
name: ansible |
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,3 @@ | ||
- name: "some task inside foo.bar collection" | ||
debug: | ||
msg: "hello world!" |
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