build-galaxy-release: Galaxyfy READMEs, module EXAMPLES and tests

Up to now the snippets in the README files, the EXAMPLES in the modules
and also the tests playbooks have not been adapted while building the
collection.

These are the invoved python files:

    utils/galaxyfy-README.py
    utils/galaxyfy-module-EXAMPLES.py
    utils/galaxyfy-playbook.py
    utils/galaxyfy.py

utils/galaxyfy.py provides the function galaxyfy_playbook, which has been
extended and is used in galaxyfy-playbook.py, galaxyfy-README.py and
galaxyfy-module-EXAMPLES.py.
This commit is contained in:
Thomas Woerner
2020-11-12 13:56:33 +01:00
parent c62f003ebf
commit f45b7d9db0
5 changed files with 236 additions and 35 deletions

View File

@@ -29,6 +29,14 @@ cd plugins/action_plugins && {
cd ../..
}
for x in $(find plugins/modules -name "*.py" -print); do
python utils/galaxyfy-module-EXAMPLES.py "$x" "ipa" "$collection_prefix"
done
for x in $(find roles/*/library -name "*.py" -print); do
python utils/galaxyfy-module-EXAMPLES.py "$x" "ipa" "$collection_prefix"
done
for x in roles/*/tasks/*.yml; do
python utils/galaxyfy-playbook.py "$x" "ipa" "$collection_prefix"
done
@@ -37,6 +45,14 @@ for x in $(find playbooks -name "*.yml" -print); do
python utils/galaxyfy-playbook.py "$x" "ipa" "$collection_prefix"
done
for x in $(find . -name "README*.md" -print); do
python utils/galaxyfy-README.py "$x" "ipa" "$collection_prefix"
done
for x in $(find tests -name "*.yml" -print); do
python utils/galaxyfy-playbook.py "$x" "ipa" "$collection_prefix"
done
#git diff
ansible-galaxy collection build