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

Ssh config other options #9684

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

stephenbradshaw
Copy link

SUMMARY

Adds other_options to ssh_config module to allow arbitrary ssh config options to be added to each new entry, as per issue 8053

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

ssh_config

ADDITIONAL INFORMATION

Usage example withother_options set shown below

- 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
    other_options:
      serveraliveinterval: 30
      serveralivecountmax: 10

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added feature This issue/PR relates to a feature request integration tests/integration module module new_contributor Help guide this first time contributor plugins plugin (any type) tests tests labels Feb 4, 2025
@ansibullbot
Copy link
Collaborator

The test ansible-test sanity --test pep8 [explain] failed with 1 error:

plugins/modules/ssh_config.py:287:15: E111: indentation is not a multiple of 4

The test ansible-test sanity --test pep8 [explain] failed with 1 error:

plugins/modules/ssh_config.py:287:15: E111: indentation is not a multiple of 4

The test ansible-test sanity --test pep8 [explain] failed with 1 error:

plugins/modules/ssh_config.py:287:15: E111: indentation is not a multiple of 4

The test ansible-test sanity --test pep8 [explain] failed with 1 error:

plugins/modules/ssh_config.py:287:15: E111: indentation is not a multiple of 4

click here for bot help

@ansibullbot ansibullbot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Feb 4, 2025
@ansibullbot ansibullbot removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Feb 4, 2025
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 integration tests/integration module module new_contributor Help guide this first time contributor plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants