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

Ansible Plug-in Malfunction #172

Open
tarundalai1999 opened this issue Jan 5, 2024 · 1 comment
Open

Ansible Plug-in Malfunction #172

tarundalai1999 opened this issue Jan 5, 2024 · 1 comment
Labels

Comments

@tarundalai1999
Copy link

Jenkins and plugins versions report

Environment

TASK [Gathering Facts] *********************************************************
fatal: [App01-Staging]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: [email protected]: Permission denied (publickey).", "unreachable": true}

PLAY RECAP *********************************************************************
App01-Staging : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0

FATAL: command execution failed
hudson.AbortException: Ansible playbook execution failed
at org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder.perform(AnsiblePlaybookBuilder.java:308)
at org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder.perform(AnsiblePlaybookBuilder.java:256)
at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
at hudson.model.Build$BuildExecution.build(Build.java:199)
at hudson.model.Build$BuildExecution.doRun(Build.java:164)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
at hudson.model.Run.execute(Run.java:1895)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:442)
ERROR: Ansible playbook execution failed

What Operating System are you using (both controller, and any agents involved in the problem)?

When i execute the playbook on jenkins, via ansible plugin, it giving an error.
Screenshot (1)

Reproduction steps

Install and Unistall Ansible Plugin, and created an instance several times

Expected Results

Playbook should execute

Actual Results

it will fetch the file and give a sucess

Anything else?

No response

Are you interested in contributing a fix?

Yes

@tarundalai1999
Copy link
Author

also my security groups of AWS is all correct and other playbooks are running. but this having an problem.

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

No branches or pull requests

1 participant