Guest User

Untitled

a guest
Apr 13th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. ---
  2. -
  3. name: "REST CALL"
  4. hosts: local
  5. tasks:
  6. - name: "REST Call to Get Session ID"
  7. uri:
  8. url: http://192.168.96.172:5300/avxapi/acctmgmt-perform-login?gwkey=f000ca01&gwsource=web
  9. method: POST
  10. body: "{{ lookup('file','empty.json') }}"
  11. body_format: json
  12. return_content: yes
  13. headers:
  14. Content-Type: "application/json"
  15. username: "admin"
  16. password: "Apptest@123"
  17. register: login
  18.  
  19. - debug:
  20. var: "{{ login }}"
  21.  
  22. PLAY [Trigger Create VIP Workflow in AppViewX] *********************************
  23.  
  24. TASK [Gathering Facts] *********************************************************
  25. ok: [localhost]
  26.  
  27. TASK [REST Call to Get Session ID] *********************************************
  28. ok: [localhost]
  29.  
  30. TASK [debug] *******************************************************************
  31. ok: [localhost] => {
  32. "<type 'dict'>": "VARIABLE IS NOT DEFINED!"
  33. }
  34.  
  35. {"payload":{}}
Add Comment
Please, Sign In to add comment