how to iterate over multiple urls using get_url with Ansible ...
stackoverflow.com › questions › 63252155Aug 04, 2020 · 1. You can use a loopfor that: - name: pull several files get_url: url: "{{ item }}" headers: "X-JFrog-Art-Api:{{ vars.artifactory_api_key }}" dest: /var/my-location loop: - https://my-jfrog.jfrog.io/my-jfrog/my-folder/my-file-1.txt - https://my-jfrog.jfrog.io/my-jfrog/my-folder/my-file-2.txt - https://my-jfrog.jfrog.io/my-jfrog/my-folder/some-filename-1.sh - https://my-jfrog.jfrog.io/my-jfrog/my-folder/another-file.jar.
ansible.builtin.uri – Interacts with webservices — Ansible ...
docs.ansible.com › ansible › latestDec 21, 2021 · -name: Check that you can connect (GET) to a page and it returns a status 200 uri: url: http://www.example.com-name: Check that a page returns a status 200 and fail if the word AWESOME is not in the page contents uri: url: http://www.example.com return_content: yes register: this failed_when: "'AWESOME' not in this.content"-name: Create a JIRA issue uri: url: https://your.jira.example.com/rest/api/2/issue/ user: your_username password: your_pass method: POST body: " {{lookup ('file', 'issue ...