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

Error running playbook: Bad configuration option 'pubkeyacceptedalgorithms' #22

Open
arunlalp opened this issue Jul 11, 2023 · 0 comments

Comments

@arunlalp
Copy link

Issue Description:
I encountered an error when running the playbook that caused the task "Gathering Facts" to fail. The error message I received was:

TASK [Gathering Facts] *********************************************************
fatal: [default]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: command-line: line 0: Bad configuration option: pubkeyacceptedalgorithms", "unreachable": true}

Steps to Reproduce:

  1. Execute the playbook amazon-ebs.jenkins with the provided configuration.
  2. The playbook fails at the task "Gathering Facts" with the above error message.

Resolution Attempted:
After analyzing the error message, I noticed that the error was caused by the pubkeyacceptedalgorithms configuration option. To resolve the issue, I removed this option from the configuration.

Additionally, I encountered another error during the playbook execution. The error message is as follows:

TASK [Gathering Facts] *********************************************************
fatal: [default]: FAILED! => {"msg": "failed to transfer file to /home/arun/.ansible/tmp/ansible-local-906_x273od6/tmpedzyw_iq ~arun/.ansible/tmp/ansible-tmp-1689085163.023391-911-48271443937713/AnsiballZ_setup.py:\n\nunknown option -- O\r\nusage: scp [-346BCpqrTv] [-c cipher] [-F ssh_config] [-i identity_file]\n [-J destination] [-l limit] [-o ssh_option] [-P port]\n [-S program] source ... target\n"}

Resolution Attempted:
To overcome this error, I removed the --scp-extra-args option from the playbook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant