Skip to content
Discussion options

You must be logged in to vote

I hope I understood your point and you can adopt some parts.
In my setup I use three keys for three repositories (inventory,playbooks,roles). For this I use the ssh config, e.g.

Host git-ansible-inventory
  HostName git
  IdentityFile ~/.ssh/id_git_ansible_inventory

Host git-ansible-playbooks
  HostName git
  IdentityFile ~/.ssh/id_git_ansible_playbooks

Host git-ansible-roles
  HostName git
  IdentityFile ~/.ssh/id_git_ansible_roles

Host git
  HostName git
  IdentityFile ~/.ssh/id_ed25519
  User git

instead of git use your git backend, e.g. gitlab/github/whatever

and e.g. in requirements.yml use this

roles:
  - name: roles
    src: git+git@git-ansible-roles:ORG/ansible-roles.git
    v…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@bismuthum83
Comment options

@bernd-mueller-el
Comment options

@bismuthum83
Comment options

@bismuthum83
Comment options

Answer selected by bismuthum83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants