mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-14 05:22:05 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user