Skip to content

Commit

Permalink
Merge pull request #9 from roles-ansible/1.0.7
Browse files Browse the repository at this point in the history
Improve gitea gpg permissions and requirements
  • Loading branch information
DO1JLR authored May 15, 2023
2 parents 073389f + a118515 commit 6325369
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 6 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@ Here are all our ansible roles for installing git server.
## Using this Collection
You can install the collection using ansible-galaxy by running:
```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:
```
# Clone git Repo with submodules to specified path
Expand All @@ -37,7 +43,7 @@ You can also list a collection in ``requirements.yml``:
---
collections:
- name: l3d.git
version: ">=1.0.6"
version: ">=1.0.7"
```
## Include roles in your playbook
Expand All @@ -58,3 +64,15 @@ Example Playbook using the l3d.git.gitea role:
gitea_start_ssh: true
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
```
4 changes: 2 additions & 2 deletions galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace: l3d
name: git

# 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
readme: README.md
Expand Down Expand Up @@ -48,7 +48,7 @@ tags:
# L(specifiers,https://python-semanticversion.readthedocs.io/en/latest/#requirement-specification). Multiple version
# range specifiers can be set and are separated by ','
dependencies:
"community.general": ">=6.5.0"
"community.general": ">=7.0.0"

# The URL of the originating SCM repository
repository: https://github.com/roles-ansible/ansible_collection_git.git
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jmespath >= 1.0.1
2 changes: 1 addition & 1 deletion requirements.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
collections:
- name: community.general
version: ">=6.5.0"
version: ">=7.0.0"
2 changes: 1 addition & 1 deletion roles/gitea

0 comments on commit 6325369

Please sign in to comment.