Skip to content

allow known_hosts module auto-create the default ~/.ssh dir#85050

Open
Oliver246 wants to merge 6 commits into
ansible:develfrom
Oliver246:known_hosts_action
Open

allow known_hosts module auto-create the default ~/.ssh dir#85050
Oliver246 wants to merge 6 commits into
ansible:develfrom
Oliver246:known_hosts_action

Conversation

@Oliver246

Copy link
Copy Markdown
SUMMARY

84952

ISSUE TYPE
  • Feature Pull Request

@ansibot ansibot added feature This issue/PR relates to a feature request. needs_triage Needs a first human triage before being processed. module This issue/PR relates to a module. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Apr 28, 2025
@ansibot

ansibot commented Apr 28, 2025

Copy link
Copy Markdown
Contributor

The test ansible-test sanity --test use-argspec-type-path [explain] failed with 1 error:

lib/ansible/modules/known_hosts.py:207:16: use argspec type="path" instead of type="str" to avoid use of `expanduser`

The test ansible-test sanity --test pep8 [explain] failed with 2 errors:

lib/ansible/modules/known_hosts.py:178:1: W293: blank line contains whitespace
lib/ansible/modules/known_hosts.py:205:33: W291: trailing whitespace

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

lib/ansible/modules/known_hosts.py:178:0: trailing-whitespace: Trailing whitespace

click here for bot help

@ansibot ansibot removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. label Apr 28, 2025
@mkrizek mkrizek added P3 Priority 3 - Approved, No Time Limitation and removed needs_triage Needs a first human triage before being processed. labels Apr 29, 2025
@mkrizek
mkrizek requested review from Akasurde and s-hertel April 29, 2025 15:35

@s-hertel s-hertel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just had a couple suggestions about the code and tests.

Please also add the line destructive to test/integration/targets/known_hosts/aliases since that it's no longer contained to the temporary test directory.

Comment thread lib/ansible/modules/known_hosts.py Outdated
Comment thread lib/ansible/modules/known_hosts.py Outdated
Comment thread test/integration/targets/known_hosts/tasks/main.yml
Comment thread test/integration/targets/known_hosts/tasks/main.yml
Comment thread test/integration/targets/known_hosts/tasks/main.yml Outdated
@s-hertel
s-hertel requested a review from jborean93 April 29, 2025 19:03
oliva and others added 2 commits April 30, 2025 10:55
…tion test case

chmod after mkdir to ensure platform compatibility and integration te…
@Oliver246

Copy link
Copy Markdown
Author

@s-hertel Updated.

Comment thread test/integration/targets/known_hosts/tasks/main.yml
@Oliver246

Copy link
Copy Markdown
Author

@s-hertel Updated.

@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label May 14, 2025
@ansibot ansibot added the needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html label Jun 11, 2025
@ansibot ansibot added the stale_pr This PR has not been pushed to for more than one year. label May 12, 2026
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. module This issue/PR relates to a module. needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html P3 Priority 3 - Approved, No Time Limitation stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. stale_pr This PR has not been pushed to for more than one year.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants