Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: create local snapshots repositories
- uri:
- url: "{{ api_endpoint }}/repositories/{{ item }}-local-snapshots"
- method: PUT
- user: 'username'
- password: 'somepass'
- body: "{{ local_snapshots_repo_json|to_json }}"
- force_basic_auth: yes
- body_format: json
- return_content: yes
- status_code: 200, 400
- register: result
- changed_when: result.status == 400
- with_items: "{{ projects }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement