Code Monkey home page Code Monkey logo

Comments (3)

timblaktu avatar timblaktu commented on August 11, 2024

@ajweitz I don't have an answer for you unfortunately, but I'm curious if you made any progress with using this role to provision a windows jenkins agent? I'm investigating ways to automated windows agent provisioning and wondering if I should bother with this role if it's not fully supported/tested. I use this role on my linux agents and it works just fine.

EDIT: Looking at the code and your error, I'm inclined to think your problem though is that you don't have WINRM set up on your controlled (agent) machine. Have you followed these instructions for setting up your windows machine so that it can be provisioned with Ansible?

from ansible-role-jenkins-slave.

ajweitz avatar ajweitz commented on August 11, 2024

@timblaktu No progress, today I tried running it with another agent, and I have the same exact issue.
I do have WinRM set up on my agents, I'm able to run many other playbooks on them without any issue.
The line delegate_to: localhost inclines to me that this particular piece of code is running on the the ansible machine itself.

from ansible-role-jenkins-slave.

ajweitz avatar ajweitz commented on August 11, 2024

At the end it turned out it was due to the way I was running Ansible playbooks.
Instead of defining the --extra-vars in the command itself, I moved the variables of winrm definition to group vars and now it works.

from ansible-role-jenkins-slave.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.