Skip to content

[codex] automate Ansible role index sync - #10

Merged
buluma merged 1 commit into
masterfrom
remove-untracked-roles
Oct 9, 2026
Merged

buluma merged 1 commit into
masterfrom
remove-untracked-roles

Conversation

@buluma

@buluma buluma commented Oct 9, 2026

Copy link
Copy Markdown
Owner

Summary

Automate the Ansible role index refresh from public buluma/ansible-role-* repositories. The current script only supports manually supplied role names, so archived repositories and newly added role repositories can leave the site index stale.

Changes

Add a sync command that paginates GitHub's user repositories endpoint, excludes archived repositories, and rewrites _data/ansible_roles.yml from the remaining role repositories. Preserve the existing public role slugs for the two repositories whose repository names use underscores. Add a daily and manual GitHub Actions workflow that opens or updates a PR containing only the generated YAML file. Document the command and the required ROLE_SYNC_TOKEN repository secret.

The current generated list contains 236 active public roles and adds four roles compared with the previous list.

Validation

  • python scripts/update_roles.py sync completed and regenerated 236 roles.
  • git diff --check passed.
  • bundle exec jekyll build passed. It emitted an existing Liquid syntax warning in _posts/2019-03-27-why-use-set-fact.md:37 for kernel_version[:1].

@coderabbitai

coderabbitai Bot commented Oct 9, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8a076821-9dd9-45e6-a3ac-da66226e9f2a
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@buluma
buluma merged commit 6ab95da into master Oct 9, 2026
4 checks passed
@buluma
buluma deleted the remove-untracked-roles branch October 9, 2026 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant