Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ProxyJump option to ssh_config #5970

Closed
1 task done
Bustel opened this issue Feb 10, 2023 · 3 comments
Closed
1 task done

Add ProxyJump option to ssh_config #5970

Bustel opened this issue Feb 10, 2023 · 3 comments
Labels
feature This issue/PR relates to a feature request has_pr module module plugins plugin (any type) system

Comments

@Bustel
Copy link

Bustel commented Feb 10, 2023

Summary

The ssh_config module is missing the ProxyJump option. This limitation can be worked-around by using the ProxyCommand but this feels very unnecessarily cumbersome.

Issue Type

Feature Idea

Component Name

ssh_config

Additional Information

Instead of specifying:

- name: Add a host in the configuration
  community.general.ssh_config:
    user: akasurde
    host: "example.com"
    hostname: "github.com"
    identity_file: "/home/akasurde/.ssh/id_rsa"
    port: '2223'
    state: present
    proxycommand: "ssh -W %h:%p -q [email protected]"

this could be simplified to:

- name: Add a host in the configuration
  community.general.ssh_config:
    user: akasurde
    host: "example.com"
    hostname: "github.com"
    identity_file: "/home/akasurde/.ssh/id_rsa"
    port: '2223'
    state: present
    proxyjump: "[email protected]"

or potentially even a list of jump hosts:

```
- name: Add a host in the configuration
  community.general.ssh_config:
    user: akasurde
    host: "example.com"
    hostname: "github.com"
    identity_file: "/home/akasurde/.ssh/id_rsa"
    port: '2223'
    state: present
    proxyjump: 
       - "[email protected]"
       - "[email protected]"

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

@Akasurde
Copy link
Member

PR #6205 merged. Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request has_pr module module plugins plugin (any type) system
Projects
None yet
Development

No branches or pull requests

3 participants