Last active
October 17, 2019 05:33
-
-
Save jonpugh/1a30bdd1290a7938eb55082ce9884600 to your computer and use it in GitHub Desktop.
Better Molecule "dependency" Experience
This file contains hidden or 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
# Configure the "dependency" action. | |
dependency: | |
name: galaxy | |
# Set 'ansible-galaxy install' command line options | |
options: | |
# Turn off '--force' option so 'ansible-galaxy' doesn't re-download the files every time you run 'molecule'. | |
force: false | |
# Make development of dependencies easier by keeping version data. | |
keep-scm-meta: true | |
# Put roles right to this one. Reduce possible role locations. | |
roles-path: ../ | |
# The 'ansible-galaxy' command considers the pre-existence of a role's folder an "error". | |
# That command and 'molecule' will exit with failure if this flag and '--force' is not set. | |
# This setup sets 'ignore-errors' to 'false' when run in Travis to make sure that automated tests will catch problems, | |
# but it defaults to 'true' so it runs quickly for local developers. | |
ignore-errors: ${GALAXY_IGNORE_ERRORS:-true} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment