Advertisement
lbrigman124

ansible uri missing post

Jan 31st, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. - name: add Org ids
  2. uri:
  3. url: "http://grafana.gsm.svc.cluster.local.:3000/api/orgs/{{(item.0+1)|int}}"
  4. user: root
  5. password: XXXXX
  6. force_basic_auth: true
  7. method: POST
  8. body: ' { "name": "{{item.1}}" }'
  9. body_format: json
  10. return_result: true
  11. register: grafanaOrg
  12. with_indexed_items:
  13. - MDC
  14. - OPS
  15. - DIAG
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement