mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-08 02:01:31 -07:00
Use native YAML - Packaging (#3588)
* Fix kibana * More native YAML * More native YAML * More native YAML * More native YAML. Now only languages/ is missing * Use native yaml sintax for packaging/languages as well * Some more and quote fixes * Fix wrong grouping
This commit is contained in:
parent
d344d7863a
commit
06a8f1d79b
34 changed files with 589 additions and 186 deletions
|
@ -91,29 +91,43 @@ author: "Franck Cuny (@franckcuny)"
|
|||
|
||||
EXAMPLES = '''
|
||||
# install Dancer perl package
|
||||
- cpanm: name=Dancer
|
||||
- cpanm:
|
||||
name: Dancer
|
||||
|
||||
# install version 0.99_05 of the Plack perl package
|
||||
- cpanm: name=MIYAGAWA/Plack-0.99_05.tar.gz
|
||||
- cpanm:
|
||||
name: MIYAGAWA/Plack-0.99_05.tar.gz
|
||||
|
||||
# install Dancer into the specified locallib
|
||||
- cpanm: name=Dancer locallib=/srv/webapps/my_app/extlib
|
||||
- cpanm:
|
||||
name: Dancer
|
||||
locallib: /srv/webapps/my_app/extlib
|
||||
|
||||
# install perl dependencies from local directory
|
||||
- cpanm: from_path=/srv/webapps/my_app/src/
|
||||
- cpanm:
|
||||
from_path: /srv/webapps/my_app/src/
|
||||
|
||||
# install Dancer perl package without running the unit tests in indicated locallib
|
||||
- cpanm: name=Dancer notest=True locallib=/srv/webapps/my_app/extlib
|
||||
- cpanm:
|
||||
name: Dancer
|
||||
notest: True
|
||||
locallib: /srv/webapps/my_app/extlib
|
||||
|
||||
# install Dancer perl package from a specific mirror
|
||||
- cpanm: name=Dancer mirror=http://cpan.cpantesters.org/
|
||||
- cpanm:
|
||||
name: Dancer
|
||||
mirror: 'http://cpan.cpantesters.org/'
|
||||
|
||||
# install Dancer perl package into the system root path
|
||||
- cpanm: name=Dancer system_lib=yes
|
||||
- cpanm:
|
||||
name: Dancer
|
||||
system_lib: yes
|
||||
|
||||
# install Dancer if it's not already installed
|
||||
# OR the installed version is older than version 1.0
|
||||
- cpanm: name=Dancer version=1.0
|
||||
- cpanm:
|
||||
name: Dancer
|
||||
version: '1.0'
|
||||
'''
|
||||
|
||||
def _is_package_installed(module, name, locallib, cpanm, version):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue