diff --git a/.github/workflows/python-release.yml b/.github/workflows/python-release.yml index 50ca8fbb..25aac9ca 100644 --- a/.github/workflows/python-release.yml +++ b/.github/workflows/python-release.yml @@ -19,15 +19,18 @@ jobs: run: | pip install -r requirements.txt pip install -r test-requirements.txt - - name: Build ansible collection package + - name: Build ansible collection package with StephenSorriaux namespace run: | - ./build-ansible-collection.sh + ./build-ansible-collection.sh StephenSorriaux - name: Publish to GH releases uses: softprops/action-gh-release@v1 with: files: "build/StephenSorriaux-ansible_kafka_admin-*" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Build ansible collection package with stephensorriaux namespace + run: | + ./build-ansible-collection.sh stephensorriaux - name: Publish to Ansible galaxy run: | ./publish-ansible-collection.sh diff --git a/README.md b/README.md index 58d680a5..bd2f098f 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,8 @@ collections: - name: https://github.com/StephenSorriaux/ansible-kafka-admin/releases/download/VERSION/StephenSorriaux-ansible_kafka_admin-VERSION.tar.gz ``` Then you can use it adding `StephenSorriaux.ansible_kafka_admin.` namespace prefix before any of defined modules. +### Using Ansible Galaxy +The lib is available under [https://galaxy.ansible.com/stephensorriaux/ansible_kafka_admin](https://galaxy.ansible.com/stephensorriaux/ansible_kafka_admin). ## Usage ### Creating, updating, deleting topics and ACLs **Note**: diff --git a/build-ansible-collection.sh b/build-ansible-collection.sh index cdb4e542..1d54aaa4 100755 --- a/build-ansible-collection.sh +++ b/build-ansible-collection.sh @@ -2,7 +2,7 @@ VERSION=$(git describe --abbrev=0 --tags) CURRENT_MODULES=$(find module_utils -type f -iname "*.py" -execdir basename {} .py ';') -NAMESPACE=StephenSorriaux +NAMESPACE=$1 NAME=ansible_kafka_admin mkdir -p build/plugins/{modules,module_utils} diff --git a/publish-ansible-collection.sh b/publish-ansible-collection.sh index 1ad54b8d..f55d72c4 100755 --- a/publish-ansible-collection.sh +++ b/publish-ansible-collection.sh @@ -1,7 +1,7 @@ #!/bin/bash VERSION=$(git describe --abbrev=0 --tags) -NAMESPACE=StephenSorriaux +NAMESPACE=stephensorriaux NAME=ansible_kafka_admin cd build