feat(hermes-auto-improve): remplacer API urllib par gh CLI pour les PR

Plus besoin de GITHUB_TOKEN dans le vault ni dans le service systemd.
gh auth login root une seule fois sur s01 suffit.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
alkatrazz 2026-06-03 00:14:09 +02:00
parent 4e0b683cbd
commit cf2c8ecc81
2 changed files with 252 additions and 124 deletions

View file

@ -1,4 +1,18 @@
---
- name: Add GitHub CLI repo
ansible.builtin.yum_repository:
name: gh-cli
description: GitHub CLI
baseurl: https://cli.github.com/packages/rpm
gpgkey: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x23F3D4EA75716059
gpgcheck: true
enabled: true
- name: Install gh CLI
ansible.builtin.dnf:
name: gh
state: present
- name: Create state directory
ansible.builtin.file:
path: "{{ hermes_auto_improve_state_dir }}"