Advertisement
lbrigman124

tower-cli playbook not found

Sep 19th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. [root@lbgsm9 project]# tower-cli job_template create -n shutdown_services --job-type run -i node_inventory --project gsm_project --playbook shutdown_services.yml --ask-limit-on-launch true --credential mdc -v
  2. *** DETAILS: The inventory field is given as a name; looking it up. ***********
  3. *** DETAILS: Getting the record. **********************************************
  4. GET http://awx-web-svc.gsm.svc.cluster.local:8052/api/v2/inventories/
  5. Params: {'name': 'node_inventory'}
  6.  
  7. *** DETAILS: The project field is given as a name; looking it up. *************
  8. *** DETAILS: Getting the record. **********************************************
  9. GET http://awx-web-svc.gsm.svc.cluster.local:8052/api/v2/projects/
  10. Params: {'name': 'gsm_project'}
  11.  
  12. *** DETAILS: The credential field is given as a name; looking it up. **********
  13. *** DETAILS: Getting the record. **********************************************
  14. GET http://awx-web-svc.gsm.svc.cluster.local:8052/api/v2/credentials/
  15. Params: {'name': 'mdc'}
  16.  
  17. *** DETAILS: Checking for an existing record. *********************************
  18. GET http://awx-web-svc.gsm.svc.cluster.local:8052/api/v2/job_templates/
  19. Params: {'name': u'shutdown_services'}
  20.  
  21. *** DETAILS: Writing the record. **********************************************
  22. POST http://awx-web-svc.gsm.svc.cluster.local:8052/api/v2/job_templates/
  23. Data: {'job_type': 'run', 'playbook': u'shutdown_services.yml', 'inventory': 2, 'credential': 2, 'ask_limit_on_launch': True, 'name': u'shutdown_services', 'project': 6}
  24.  
  25. Error: The Tower server claims it was sent a bad request.
  26.  
  27. POST http://awx-web-svc.gsm.svc.cluster.local:8052/api/v2/job_templates/
  28. Params: None
  29. Data: {"job_type": "run", "playbook": "shutdown_services.yml", "inventory": 2, "credential": 2, "ask_limit_on_launch": true, "name": "shutdown_services", "project": 6}
  30.  
  31. Response: {"playbook":["Playbook not found for project."]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement