From 71984c902f60ba730ca263b7b763c939029fd1fe Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Sun, 1 Nov 2026 20:14:25 +0000 Subject: [PATCH] ansible: update github-bot to Node.js 26 Fix secrets reading for the `create-github-bot` playbook. Update Node.js from 20 to 26. Signed-off-by: Richard Lau --- ansible/playbooks/create-github-bot.yml | 1 + ansible/roles/github-bot/tasks/main.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ansible/playbooks/create-github-bot.yml b/ansible/playbooks/create-github-bot.yml index da973c2c4..eb18fff3d 100644 --- a/ansible/playbooks/create-github-bot.yml +++ b/ansible/playbooks/create-github-bot.yml @@ -10,6 +10,7 @@ - hosts: infra-rackspace-debian12-x64-1 roles: + - read-secrets - bootstrap - package-upgrade - github-bot diff --git a/ansible/roles/github-bot/tasks/main.yml b/ansible/roles/github-bot/tasks/main.yml index 3d8cec510..21107fbae 100644 --- a/ansible/roles/github-bot/tasks/main.yml +++ b/ansible/roles/github-bot/tasks/main.yml @@ -2,7 +2,7 @@ - name: check if secrets are properly set fail: - failed_when: not {{ secret }} + failed_when: not secret loop_control: loop_var: secret with_items: @@ -40,7 +40,7 @@ - name: Bootstrap | Add nodesource repo apt_repository: - repo: deb [arch=amd64 signed-by=/etc/apt/keyrings/nodesource-repo.gpg.asc] https://deb.nodesource.com/node_20.x nodistro main + repo: deb [arch=amd64 signed-by=/etc/apt/keyrings/nodesource-repo.gpg.asc] https://deb.nodesource.com/node_26.x nodistro main state: present - name: Bootstrap | APT Update and upgrade