SHARE
TWEET

Untitled

a guest Sep 4th, 2018 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    - name: Check CSRM
  2.       uri:
  3.         url: {{ jenkins_url }}/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb
  4.         return_contect: yes
  5.         register: crumb
  6.   - name: Create slave in Jenkins master2
  7.     uri:
  8.       url: "{{jenkins_url}}/computer/doCreateItem?name={{jenkins_node_name}}&type=hudson.slaves.DumbSlave"
  9.       method: POST
  10.       user: "{{jenkins_user_id}}"
  11.       password: "{{jenkins_api_token}}"
  12.       HEADER_Content-Type: application/x-www-form-urlencoded
  13.       HEADER_Content-Type: json
  14.       HEADER_Jenkins-Crumb: d8e38f5402bf61ce7ee7f8d76c3593b9
  15.       body_format: json
  16.       follow_redirects: none
  17.       return_content: yes
  18.       content: yes
  19.       creates: yes
  20.       body: "jenkins_slave_json.json"
  21.       force_basic_auth: yes
  22.       validate:certs: no
  23.       status_code: 200
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top