From 100ea0e038a58a50d4106f0c594231f447cf701c Mon Sep 17 00:00:00 2001 From: Mark Meijerman Date: Mon, 9 Oct 2023 09:41:55 +0200 Subject: [PATCH] update the galaxy role info + push to galaxy --- .github/workflows/push-to-ansible-galaxy.yml | 19 +++++++++++++++++++ README.md | 2 +- meta/main.yml | 7 +++---- tasks/main.yml | 6 ++++-- 4 files changed, 27 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/push-to-ansible-galaxy.yml diff --git a/.github/workflows/push-to-ansible-galaxy.yml b/.github/workflows/push-to-ansible-galaxy.yml new file mode 100644 index 0000000..1af6e8c --- /dev/null +++ b/.github/workflows/push-to-ansible-galaxy.yml @@ -0,0 +1,19 @@ + +--- +name: push-to-ansible-galaxy + +on: + push: + tags: + - "v*" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + - name: galaxy + uses: robertdebock/galaxy-action@1.2.0 + with: + galaxy_api_key: ${{ secrets.galaxy_api_key }} \ No newline at end of file diff --git a/README.md b/README.md index c0ba408..0065646 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Install Node.js and NPM Requirements ------------ -Debian Wheezy/Jessie/Stretch/Buster or Ubuntu Precise/Trusty/Xenial. +Debian Bullseye / Bookworm or Ubuntu Precise/Trusty/Xenial. Role Variables -------------- diff --git a/meta/main.yml b/meta/main.yml index a12d68d..373893e 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -1,6 +1,7 @@ --- galaxy_info: author: Jasper N. Brouwer, Ramon de la Fuente + role_name: nodejs description: Install Node.js and NPM company: Future500 license: LGPL-3.0 @@ -8,10 +9,8 @@ galaxy_info: platforms: - name: Debian versions: - - wheezy - - jessie - - stretch - - buster + - bullseye + - bookworm - name: Ubuntu versions: - precise diff --git a/tasks/main.yml b/tasks/main.yml index e3cb64e..073fb47 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,9 +1,11 @@ --- - name: Add the nodesource.com trusted key - apt_key: + ansible.builtin.url: url: https://keyserver.ubuntu.com/pks/lookup?op=get&fingerprint=on&search=0x1655A0AB68576280 - id: "68576280" + dest: /etc/apt/trusted.gpg.d/nodesource.gpg + mode: 0644 + force: yes - name: Add the nodesource.com repository apt_repository: