1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_collection_git.git synced 2024-09-14 20:12:03 +02:00

Update community.general as requirement

This commit is contained in:
L3D 2023-04-16 00:30:25 +02:00
parent cef0ee6daf
commit c151f7d230
No known key found for this signature in database
GPG key ID: AD65B920933B4B20
3 changed files with 10 additions and 1 deletions

View file

@ -27,6 +27,9 @@ cd collections/ansible_collections/l3d/git/
# optionally init git submodules # optionally init git submodules
git submodule update --init --recursive git submodule update --init --recursive
# optionally install all requirements
ansible-galaxy install -r requirements.yml
``` ```
You can also list a collection in ``requirements.yml``: You can also list a collection in ``requirements.yml``:
@ -34,6 +37,7 @@ You can also list a collection in ``requirements.yml``:
--- ---
collections: collections:
- name: l3d.git - name: l3d.git
version: ">=1.0.1"
``` ```
## Include roles in your playbook ## Include roles in your playbook

View file

@ -47,7 +47,8 @@ tags:
# collection label 'namespace.name'. The value is a version range # collection label 'namespace.name'. The value is a version range
# L(specifiers,https://python-semanticversion.readthedocs.io/en/latest/#requirement-specification). Multiple version # L(specifiers,https://python-semanticversion.readthedocs.io/en/latest/#requirement-specification). Multiple version
# range specifiers can be set and are separated by ',' # range specifiers can be set and are separated by ','
dependencies: {} dependencies:
"community.general": ">=6.5.0"
# The URL of the originating SCM repository # The URL of the originating SCM repository
repository: https://github.com/roles-ansible/ansible_collection_git.git repository: https://github.com/roles-ansible/ansible_collection_git.git

4
requirements.yml Normal file
View file

@ -0,0 +1,4 @@
---
collections:
- name: community.general
version: ">=6.5.0"