Skip to content

Commit

Permalink
Additionally mount ~/.ssh/ to /root/.ssh inside EEs
Browse files Browse the repository at this point in the history
Currently when running inside an EE as root, only SSH_AUTH_SOCK is working. This enables the usage of default key names under ~/.ssh/ on the host.
  • Loading branch information
shanemcd committed Sep 16, 2021
1 parent f741c29 commit 5ef53d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ansible_runner/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,10 @@ def cli_mounts():
'src': '{}/.ssh/'.format(os.environ['HOME']),
'dest': '/home/runner/.ssh/'
},
{
'src': '{}/.ssh/'.format(os.environ['HOME']),
'dest': '/root/.ssh/'
},
{
'src': '/etc/ssh/ssh_known_hosts',
'dest': '/etc/ssh/ssh_known_hosts'
Expand Down

0 comments on commit 5ef53d0

Please sign in to comment.