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