Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. - name: create local snapshots repositories
  2. uri:
  3. url: "{{ api_endpoint }}/repositories/{{ item }}-local-snapshots"
  4. method: PUT
  5. user: 'username'
  6. password: 'somepass'
  7. body: "{{ local_snapshots_repo_json|to_json }}"
  8. force_basic_auth: yes
  9. body_format: json
  10. return_content: yes
  11. status_code: 200, 400
  12. register: result
  13. changed_when: result.status == 400
  14. with_items: "{{ projects }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement