Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [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
- *** DETAILS: The inventory field is given as a name; looking it up. ***********
- *** DETAILS: Getting the record. **********************************************
- GET http://awx-web-svc.gsm.svc.cluster.local:8052/api/v2/inventories/
- Params: {'name': 'node_inventory'}
- *** DETAILS: The project field is given as a name; looking it up. *************
- *** DETAILS: Getting the record. **********************************************
- GET http://awx-web-svc.gsm.svc.cluster.local:8052/api/v2/projects/
- Params: {'name': 'gsm_project'}
- *** DETAILS: The credential field is given as a name; looking it up. **********
- *** DETAILS: Getting the record. **********************************************
- GET http://awx-web-svc.gsm.svc.cluster.local:8052/api/v2/credentials/
- Params: {'name': 'mdc'}
- *** DETAILS: Checking for an existing record. *********************************
- GET http://awx-web-svc.gsm.svc.cluster.local:8052/api/v2/job_templates/
- Params: {'name': u'shutdown_services'}
- *** DETAILS: Writing the record. **********************************************
- POST http://awx-web-svc.gsm.svc.cluster.local:8052/api/v2/job_templates/
- Data: {'job_type': 'run', 'playbook': u'shutdown_services.yml', 'inventory': 2, 'credential': 2, 'ask_limit_on_launch': True, 'name': u'shutdown_services', 'project': 6}
- Error: The Tower server claims it was sent a bad request.
- POST http://awx-web-svc.gsm.svc.cluster.local:8052/api/v2/job_templates/
- Params: None
- Data: {"job_type": "run", "playbook": "shutdown_services.yml", "inventory": 2, "credential": 2, "ask_limit_on_launch": true, "name": "shutdown_services", "project": 6}
- Response: {"playbook":["Playbook not found for project."]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement