semaphoreui / semaphore

Modern UI and powerful API for Ansible, Terraform, OpenTofu, PowerShell and other DevOps tools.
https://semaphoreui.com
MIT License
10.51k stars 1.06k forks source link

Support ssh config in env #1313

Open wenerme opened 1 year ago

wenerme commented 1 year ago

A lot of issues is related to ssh customize, for me I pushed .ssh/config to repo, then symlink under ~/.ssh/xyz.ssh-config, this make ansible inv easier

all:
  hosts:
      svr-1:

svr-1 will works as expected.

the workaround is just override the var like https://github.com/ansible-semaphore/semaphore/issues/1258#issuecomment-1608312538

{
  "ansible_ssh_common_args": "-F ./proj.ssh-config",
}
kmf commented 1 year ago

I think the right option is to add a custom SSH Config file per Project / Inventory cc @fiftin