ansible: add github_ssh role for SSH key management

This commit is contained in:
ionutboangiu
2025-07-11 20:06:29 +03:00
committed by Dan Christian Bogos
parent e211a1dd0d
commit b52bfa71b1
2 changed files with 134 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
---
# GitHub SSH configuration
github_ssh_key_path: "/home/{{ ansible_user }}/.ssh/id_rsa"
github_ssh_key_name: "cgrates-ssh-key"
# GitHub API settings
# Token scopes needed:
# - For deploy keys: 'repo' scope
# - For user keys: 'admin:public_key' scope
github_ssh_token: ""
github_ssh_repo_owner: ""
github_ssh_repo_name: ""
# SSH key method selection
# User keys: Account-wide access, inherit user permissions, work for all repos
# Deploy keys: Repository-specific, can be read-only
github_ssh_use_deploy_keys: false # false = user keys (default), true = deploy keys
github_ssh_deploy_key_read_only: false # only used when github_ssh_use_deploy_keys: true
# SSH client configuration
github_ssh_known_hosts_file: "/home/{{ ansible_user }}/.ssh/known_hosts"
github_ssh_config_file: "/home/{{ ansible_user }}/.ssh/config"