Skip to content

Commit

Permalink
feat: publish collection to ansible-galaxy
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasheld committed May 25, 2023
1 parent 5776576 commit 1a3f073
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 5 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This collection contains modules that allow to configure [Uptime Kuma](https://github.com/louislam/uptime-kuma) with Ansible.

Python version 3.6+ and Ansible version 2.10+ are required.
Python version 3.7+ and Ansible version 2.10+ are required.

Supported Uptime Kuma versions: 1.17.0 - 1.21.2

Expand All @@ -14,9 +14,19 @@ This collection requires the python module [uptime-kuma-api](https://github.com/
pip install uptime-kuma-api
```

Alternately, you can install a specific version (e.g. `0.13.0`):
```shell
pip install uptime-kuma-api==0.13.0
```

Then install the ansible collection itself:
```shell
ansible-galaxy collection install git+https://github.com/lucasheld/ansible-uptime-kuma.git
ansible-galaxy collection install lucasheld.uptime_kuma
```

Alternately, you can install a specific version (e.g. `0.14.0`):
```shell
ansible-galaxy collection install lucasheld.uptime_kuma:==0.14.0
```

## Modules
Expand Down
7 changes: 7 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

rm -f ./*.tar.gz
ansible-galaxy collection build -v
TARBALL=$(ls -1 ./*.tar.gz)
ansible-galaxy collection publish -v "$TARBALL"
rm -f ./*.tar.gz
10 changes: 8 additions & 2 deletions galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ readme: README.md
authors:
- Lucas Held <[email protected]>
description: This collection contains modules that allow to configure Uptime Kuma with Ansible.
license:
- GPL-3.0-or-later
license_file: LICENSE
tags: [uptime_kuma]
repository: https://github.com/lucasheld/ansible-uptime-kuma
documentation: https://github.com/lucasheld/ansible-uptime-kuma/wiki
homepage: https://github.com/lucasheld/ansible-uptime-kuma
issues: https://github.com/lucasheld/ansible-uptime-kuma/issues
build_ignore:
- '*/.pytest_cache'
- .idea
- build
- scripts
- run_tests.sh
- build.sh
- .gitignore
2 changes: 1 addition & 1 deletion meta/runtime.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
requires_ansible: '>=2.9.10'
requires_ansible: '>=2.10'

0 comments on commit 1a3f073

Please sign in to comment.