From ed08720a7dee33d1a35328de4405c22b1e54d2de Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 10 May 2021 22:08:57 +0200 Subject: [PATCH] Update metadata and release at galaxy --- .github/galaxy.svg | 465 ++++++++--------------------------- .github/workflows/galaxy.yml | 20 ++ README.md | 31 ++- meta/main.yml | 16 ++ tasks/main.yml | 3 +- tasks/versioncheck.yml | 8 +- vars/main.yml | 2 +- 7 files changed, 169 insertions(+), 376 deletions(-) create mode 100644 .github/workflows/galaxy.yml create mode 100644 meta/main.yml diff --git a/.github/galaxy.svg b/.github/galaxy.svg index 90acf04..30bb9b4 100644 --- a/.github/galaxy.svg +++ b/.github/galaxy.svg @@ -1,366 +1,111 @@ - - - - - - - image/svg+xml - - - - - - 3D <l3d@c3woc.de> - - - - - MIT License - - - - - - - - - - - - - - - + + + + + image/svg+xml + + + + + L3D <l3d@c3woc.de> + + + + + + + + + + - - - - - - - - MIT - MIT + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - do1jlr.role_name - do1jlr.role_name + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.github/workflows/galaxy.yml b/.github/workflows/galaxy.yml new file mode 100644 index 0000000..b5dc0ec --- /dev/null +++ b/.github/workflows/galaxy.yml @@ -0,0 +1,20 @@ +--- +name: Galaxy release + +# yamllint disable-line rule:truthy +on: + push: + branches: ['main'] + release: + types: ['created'] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + - name: galaxy + uses: robertdebock/galaxy-action@1.1.0 + with: + galaxy_api_key: ${{ secrets.galaxy_api_key }} diff --git a/README.md b/README.md index f5b2a1b..1675099 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,19 @@ -# ansible role acmetool_fix +[![MIT License](https://raw.githubusercontent.com/roles-ansible/ansible_role_acmetool_debian_fix/main/.github/license.svg)](https://github.com/roles-ansible/ansible_role_acmetool_debian_fix/blob/main/LICENSE) +[![galaxy_acmetool](https://raw.githubusercontent.com/roles-ansible/ansible_role_acmetool_debian_fix/main/.github/galaxy.svg)](https://galaxy.ansible.com/do1jlr/acmetool_fix) -Ansible role to install a acmetool from the URL defined in `defaults/main.yml` + ansible role acmetool_fix +============================== + +Ansible role to install a acmetool from the URL defined in `defaults/main.yml`. + +This is needed on debian buster *(debian10)*, because the acmetool release in the debian buster repos is to old. + +We are using the debian sid *(debian testing)* repos. + +This role is maintained until Debian Bullseye *(debian11)* is released and there is a more up to date version of acmetool. + + +This role is designed to work together with the [do1jlr.acmetool](https://github.com/roles-ansible/ansible_role_acmetool) role. But since it only install acmetool manually it will work on each debian based system, until debian bullseye is released. Testing ---------- @@ -9,11 +22,11 @@ If you want to find out more about our tests, please have a look at the github m | test status | Github Marketplace | | :--------- | :---------------- | -| [![Ansible Lint check](https://github.com/DO1JLR/ansible_role_acmetool_debian_fix/workflows/Ansible%20Lint%20check/badge.svg)](https://github.com/DO1JLR/ansible_role_acmetool_debian_fix/actions?query=workflow%3A%22Ansible+Lint+check%22) | [ansible-lint action](https://github.com/marketplace/actions/ansible-lint) | -| ![Yamllint GitHub Actions](https://github.com/DO1JLR/ansible_role_acmetool_debian_fix/workflows/Yamllint%20GitHub%20Actions/badge.svg) | [yamllint gitHub actions](https://github.com/marketplace/actions/yamllint-github-action) | +| [![Ansible Lint check](https://github.com/roles-ansible/ansible_role_acmetool_debian_fix/actions/workflows/ansible-linting-check.yml/badge.svg)](https://github.com/roles-ansible/ansible_role_acmetool_debian_fix/actions/workflows/ansible-linting-check.yml) | [ansible-lint action](https://github.com/marketplace/actions/ansible-lint) | +| [![Yamllint GitHub Actions](https://github.com/roles-ansible/ansible_role_acmetool_debian_fix/actions/workflows/yamllint.yaml/badge.svg)](https://github.com/roles-ansible/ansible_role_acmetool_debian_fix/actions/workflows/yamllint.yaml) | [yamllint gitHub actions](https://github.com/marketplace/actions/yamllint-github-action) | | | | -| [![Ansible check debian:stable](https://github.com/DO1JLR/ansible_role_acmetool_debian_fix/workflows/Ansible%20check%20debian:stable/badge.svg)](https://github.com/DO1JLR/ansible_role_acmetool_debian_fix/actions?query=workflow%3A%22Ansible+check+debian%3Astable%22) | [ansible test with debian stable](https://github.com/marketplace/actions/check-ansible-debian-stable) | -| [![Ansible check debian:latest](https://github.com/DO1JLR/ansible_role_acmetool_debian_fix/workflows/Ansible%20check%20debian:latest/badge.svg)](https://github.com/DO1JLR/ansible_role_acmetool_debian_fix/actions?query=workflow%3A%22Ansible+check+debian%3Alatest%22) | [ansible test with debian latest](https://github.com/marketplace/actions/check-ansible-debian-latest) | -| [![Ansible check debian:sid](https://github.com/DO1JLR/ansible_role_acmetool_debian_fix/workflows/Ansible%20check%20debian:sid/badge.svg)](https://github.com/DO1JLR/ansible_role_acmetool_debian_fix/actions?query=workflow%3A%22Ansible+check+debian%3Asid%22) | [ansible test with debian sid](https://github.com/marketplace/actions/check-ansible-debian-sid) | -| [![Ansible check debian:buster](https://github.com/DO1JLR/ansible_role_acmetool_debian_fix/workflows/Ansible%20check%20debian:buster/badge.svg)](https://github.com/DO1JLR/ansible_role_acmetool_debian_fix/actions?query=workflow%3A%22Ansible+check+debian%3Abuster%22) | [ansible test with debian buster](https://github.com/marketplace/actions/check-ansible-debian-buster) | -| [![Ansible check debian:stretch](https://github.com/DO1JLR/ansible_role_acmetool_debian_fix/workflows/Ansible%20check%20debian:stretch/badge.svg)](https://github.com/DO1JLR/ansible_role_acmetool_debian_fix/actions?query=workflow%3A%22Ansible+check+debian%3Astretch%22) | [ansible test with debian stretch](https://github.com/marketplace/actions/check-ansible-debian-stretch) | +| [![Ansible check debian:stable](https://github.com/roles-ansible/ansible_role_acmetool_debian_fix/actions/workflows/ansible-debian-stable.yml/badge.svg)](https://github.com/roles-ansible/ansible_role_acmetool_debian_fix/actions/workflows/ansible-debian-stable.yml) | [ansible test with debian stable](https://github.com/marketplace/actions/check-ansible-debian-stable) | +| [![Ansible check debian:latest](https://github.com/roles-ansible/ansible_role_acmetool_debian_fix/actions/workflows/ansible-debian-latest.yml/badge.svg)](https://github.com/roles-ansible/ansible_role_acmetool_debian_fix/actions/workflows/ansible-debian-latest.yml) | [ansible test with debian latest](https://github.com/marketplace/actions/check-ansible-debian-latest) | +| [![Ansible check debian:sid](https://github.com/roles-ansible/ansible_role_acmetool_debian_fix/actions/workflows/ansible-debian-sid.yml/badge.svg)](https://github.com/roles-ansible/ansible_role_acmetool_debian_fix/actions/workflows/ansible-debian-sid.yml) | [ansible test with debian sid](https://github.com/marketplace/actions/check-ansible-debian-sid) | +| [![Ansible check debian:buster](https://github.com/roles-ansible/ansible_role_acmetool_debian_fix/actions/workflows/ansible-debian-buster.yml/badge.svg)](https://github.com/roles-ansible/ansible_role_acmetool_debian_fix/actions/workflows/ansible-debian-buster.yml) | [ansible test with debian buster](https://github.com/marketplace/actions/check-ansible-debian-buster) | +| [![Ansible check debian:stretch](https://github.com/roles-ansible/ansible_role_acmetool_debian_fix/actions/workflows/ansible-debian-stretch.yml/badge.svg)](https://github.com/roles-ansible/ansible_role_acmetool_debian_fix/actions/workflows/ansible-debian-stretch.yml) | [ansible test with debian stretch](https://github.com/marketplace/actions/check-ansible-debian-stretch) | diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..4afec2e --- /dev/null +++ b/meta/main.yml @@ -0,0 +1,16 @@ +--- +galaxy_info: + role_name: acmetool_fix + author: do1jlr + description: install a specific acmetool version on debian based systems + license: "MIT" + min_ansible_version: 2.10 + github_branch: main + platforms: + - name: Debian + versions: all + galaxy_tags: + - acmetool + - fix + - debian +dependencies: [] diff --git a/tasks/main.yml b/tasks/main.yml index 750ce66..3d597cd 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,5 +1,6 @@ --- -- include_tasks: versioncheck.yml +- name: run optional versionscheck + ansible.builtin.include_tasks: versioncheck.yml when: submodules_versioncheck|bool - name: install acmetool from fixed url diff --git a/tasks/versioncheck.yml b/tasks/versioncheck.yml index dca3e47..5128cc8 100644 --- a/tasks/versioncheck.yml +++ b/tasks/versioncheck.yml @@ -1,4 +1,7 @@ --- +# Copyright (c) 2021 L3D +# this file is released with the MIT license. +# License: https://github.com/roles-ansible/ansible_role_template/blob/main/LICENSE - name: Create directory for versionscheck become: true ansible.builtin.file: @@ -32,11 +35,6 @@ when: - playbook_version.content|default("Mgo=")|b64decode|int - 1 >= playbook_version_number|int and submodules_versioncheck|bool -- name: check if '/etc/ansible-version/' is empty - ansible.builtin.find: - paths: '/etc/ansible-version/' - register: filesFound - - name: write new version to remote disk become: true ansible.builtin.copy: diff --git a/vars/main.yml b/vars/main.yml index fff7333..ef3e739 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,4 +1,4 @@ --- # versionscheck -playbook_version_number: 5 # should be a integer +playbook_version_number: 6 # should be a integer playbook_version_path: 'do1jlr.ansible_role_acmetool_debian_fix.version'