Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54557

hudson.AbortException: Ansible playbook execution failed

    Details

    • Similar Issues:

      Description

      Faild always

      Jenkins ver. 2.60.1 under Windows
      jenkins agent under linux:

      ansible 2.7.0
        config file = /etc/ansible/ansible.cfg
        configured module search path = [u'/etc/ansible/my_modules']
        ansible python module location = /usr/lib/python2.7/site-packages/ansible
        executable location = /usr/bin/ansible
        python version = 2.7.5 (default, Aug  4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
      

       

      run from jenkins:

       

      // code placeholder
      $ /usr/bin/ansible-playbook /etc/ansible/playbooks/tools/Check_hostname.yml -i host -f 5
      PLAY [all] *********************************************************************
      TASK [Gathering Facts] ********************************************************
      .......
      TASK [Comprobando nombre equipo] ***********************************************
      .....
      PLAY RECAP *********************************************************************
      .......
      w********p           : ok=0    changed=0    unreachable=1    failed=0   
      FATAL: command execution failedhudson.AbortException: Ansible playbook execution failed at org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder.perform(AnsiblePlaybookBuilder.java:236) at org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder.perform(AnsiblePlaybookBuilder.java:207) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:735) at hudson.model.Build$BuildExecution.build(Build.java:206) at hudson.model.Build$BuildExecution.doRun(Build.java:163) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:490) at hudson.model.Run.execute(Run.java:1735) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:405)
      ERROR: Ansible playbook execution failed
       Archiving artifacts
       Recording test results
       Finished: FAILURE
      

       

       Run in host:

       

      // code placeholder
      $ /usr/bin/ansible-playbook /etc/ansible/playbooks/tools/Check_hostname.yml -i host -f 5
      PLAY [all] *********************************************************************
      TASK [Gathering Facts] ********************************************************
      .......
      TASK [Comprobando nombre equipo] ***********************************************
      .....
      PLAY RECAP *********************************************************************
      .......
      w********p           : ok=0    changed=0    unreachable=1    failed=0   
      #
      

       

       

        Attachments

          Activity

            People

            • Assignee:
              sirot Jean-Christophe Sirot
              Reporter:
              wowberk Josu Rodriguez
            • Votes:
              21 Vote for this issue
              Watchers:
              31 Start watching this issue

              Dates

              • Created:
                Updated: