Comments (3)
@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.
@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.
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)
- Update travis config to use new lint rules and fix their warnings HOT 1
- jenkins_slave_secret contains new lines HOT 1
- Add ability to configure Agent Usage (EXCLUSIVE/NORMAL) as variable HOT 1
- Docker tests not working
- unable to resolve class hudson.plugins.sshslaves.verifiers.NonVerifyingKeyVerificationStrategy HOT 3
- Delegate registration task to control node
- Installing slave agent insufficiently documented HOT 2
- After Linux VM reboot the jenkins slave is not running
- Add possible disable create jenkis group and user HOT 1
- Windows Server 2019 Install slave jenkins agent failing HOT 1
- On RHEL8/Centos8 python3 selinux libraries should be installed instead of python 2 libraries
- "Install slave jenkins agent" task doesn't report errors HOT 1
- Why is there a slave_windows_java_opts but no slave_linux_java_opts ?
- Using backward slash in windows slave path causing errors
- Windows Server 2019 did not get added as a Node in the Jenkins server HOT 1
- Is there a way to set "tool location"?
- RHEL 8 install fails due to selinux config
- Configuration to populate Node environment variable HOT 1
- Configuration to set service windows user HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-jenkins-slave.