diff --git a/README.md b/README.md index 3f8f38a..caf112a 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..432e3e3 --- /dev/null +++ b/build.sh @@ -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 diff --git a/galaxy.yml b/galaxy.yml index 25b19b9..a5b98fc 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -5,11 +5,17 @@ readme: README.md authors: - Lucas Held 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 diff --git a/meta/runtime.yml b/meta/runtime.yml index 938ca97..77fdbb3 100644 --- a/meta/runtime.yml +++ b/meta/runtime.yml @@ -1 +1 @@ -requires_ansible: '>=2.9.10' +requires_ansible: '>=2.10'