mirror of
https://github.com/roles-ansible/ansible_collection_git.git
synced 2024-09-14 20:12:03 +02:00
Merge pull request #42 from roles-ansible/req
Cleanup ansible requirements since they are already in galaxy.yml
This commit is contained in:
commit
933021b66d
4 changed files with 3 additions and 13 deletions
2
.github/workflows/ansible-linting-check.yml
vendored
2
.github/workflows/ansible-linting-check.yml
vendored
|
@ -22,4 +22,4 @@ jobs:
|
||||||
with:
|
with:
|
||||||
target: "./"
|
target: "./"
|
||||||
python_dependency: "jmespath"
|
python_dependency: "jmespath"
|
||||||
collections_yml: "requirements.yml"
|
required_collections: 'community.general'
|
||||||
|
|
|
@ -34,9 +34,6 @@ 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 collection install -r requirements.yml --upgrade
|
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also list a collection in ``requirements.yml``:
|
You can also list a collection in ``requirements.yml``:
|
||||||
|
@ -69,11 +66,8 @@ Example Playbook using the l3d.git.gitea role:
|
||||||
## Requirements
|
## Requirements
|
||||||
The roles in this collection using the ``ansible.builtin`` and ``community.general`` ansible Collections. To download the latest forgejo/gitea release we use json_query. This requires ``jmespath`` to be available.
|
The roles in this collection using the ``ansible.builtin`` and ``community.general`` ansible Collections. To download the latest forgejo/gitea release we use json_query. This requires ``jmespath`` to be available.
|
||||||
|
|
||||||
### Example Requirements Installation:
|
### Example Python Requirements Installation:
|
||||||
```bash
|
```bash
|
||||||
# galaxy requirements
|
|
||||||
ansible-galaxy collection install -r requirements.yml --upgrade
|
|
||||||
|
|
||||||
# pip requirements
|
# pip requirements
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
```
|
```
|
||||||
|
|
|
@ -48,7 +48,7 @@ tags:
|
||||||
# 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": ">=8.3.0"
|
"community.general": ">=9.2.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
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
---
|
|
||||||
collections:
|
|
||||||
- name: community.general
|
|
||||||
version: ">=8.3.0"
|
|
Loading…
Reference in a new issue