unable to ssh with github actions token of teleport. #46116
Unanswered
hdavila146
asked this question in
Q&A
Replies: 2 comments
-
Does anyone have a similar issue using the teleport token and connecting to a node and use ansible playbook? thanks? |
Beta Was this translation helpful? Give feedback.
0 replies
-
You'd need to make reference to the outputted SSH config file in your commands - see if you can get this to work: - name: Run hostname using SSH (OpenSSH)
run: ssh -F ${{ steps.auth.outputs.ssh-config }} [email protected] hostname You can also use - name: Get Ansible hosts
run: |
tsh -i ${{ steps.auth.outputs.identity-file }} ls --format=json | jq '.[].spec.hostname + ".teleport.domain.com"' > hosts Putting these together should get you nearer to where you need to be. See these guides for a little more detail: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Expected behavior:
Current behavior:
Bug details:
Teleport version 16.1.7
Recreation steps
using a github action to deploy a playbook of ansible
`- name: Install Teleport
uses: teleport-actions/setup@v1
with:
version: 16.1.4
Beta Was this translation helpful? Give feedback.
All reactions