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

Merge pull request #9 from roles-ansible/1.0.7

Improve gitea gpg permissions and requirements
This commit is contained in:
L3D 2023-05-15 16:21:00 +02:00 committed by GitHub
commit 6325369b41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 6 deletions

View file

@ -14,9 +14,15 @@ Here are all our ansible roles for installing git server.
## Using this Collection ## Using this Collection
You can install the collection using ansible-galaxy by running: You can install the collection using ansible-galaxy by running:
```bash ```bash
ansible-galaxy collection install l3d.git ansible-galaxy collection install l3d.git:1.0.7
``` ```
Remember you can to Upgrade to the latest version of the l3d.git collection using the ``--upgrade`` parameter:
```bash
ansible-galaxy collection install l3d.git --upgrade
```
Or you could clone this collection in your local ansible project for example to ``collections/ansible_collections/l3d/git/``. Make sure you checkout [git submodules](https://git-scm.com/docs/git-submodule) too. Example: Or you could clone this collection in your local ansible project for example to ``collections/ansible_collections/l3d/git/``. Make sure you checkout [git submodules](https://git-scm.com/docs/git-submodule) too. Example:
``` ```
# Clone git Repo with submodules to specified path # Clone git Repo with submodules to specified path
@ -37,7 +43,7 @@ You can also list a collection in ``requirements.yml``:
--- ---
collections: collections:
- name: l3d.git - name: l3d.git
version: ">=1.0.6" version: ">=1.0.7"
``` ```
## Include roles in your playbook ## Include roles in your playbook
@ -58,3 +64,15 @@ Example Playbook using the l3d.git.gitea role:
gitea_start_ssh: true gitea_start_ssh: true
gitea_fork: 'forgejo' gitea_fork: 'forgejo'
``` ```
## 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.
### Example Requirements Installation:
```bash
# galaxy requirements
ansible-galaxy install -r requirements.yml --upgrade
# pip requirements
pip install -r requirements.txt
```

View file

@ -9,7 +9,7 @@ namespace: l3d
name: git name: git
# The version of the collection. Must be compatible with semantic versioning # The version of the collection. Must be compatible with semantic versioning
version: 1.0.6 version: 1.0.7
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection # The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md readme: README.md
@ -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": ">=6.5.0" "community.general": ">=7.0.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
requirements.txt Normal file
View file

@ -0,0 +1 @@
jmespath >= 1.0.1

View file

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

@ -1 +1 @@
Subproject commit a48591bc4bf8121ff34ce6b59d4822d1b524db6c Subproject commit 502210624d942259a2c22b225944b3af784f4c70