Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: Check CSRM
- uri:
- url: {{ jenkins_url }}/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb
- return_contect: yes
- register: crumb
- - name: Create slave in Jenkins master2
- uri:
- url: "{{jenkins_url}}/computer/doCreateItem?name={{jenkins_node_name}}&type=hudson.slaves.DumbSlave"
- method: POST
- user: "{{jenkins_user_id}}"
- password: "{{jenkins_api_token}}"
- HEADER_Content-Type: application/x-www-form-urlencoded
- HEADER_Content-Type: json
- HEADER_Jenkins-Crumb: d8e38f5402bf61ce7ee7f8d76c3593b9
- body_format: json
- follow_redirects: none
- return_content: yes
- content: yes
- creates: yes
- body: "jenkins_slave_json.json"
- force_basic_auth: yes
- validate:certs: no
- status_code: 200
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement