【发布时间】:2022-12-01 18:21:50
【问题描述】:
I'm trying to check URL's with the uri module and a loop of course because I have more than one URL.
---
- name: check URLs with a loop
hosts: localhost
connection: local
gather_facts: no
vars:
url:
- https://www.google.com
- https://example.com
- https://www.wikipedia.org
tasks:
- name: test url
uri:
url: "{{ item }}"
loop:
- "{{ url }}"
【问题讨论】:
-
Since this seems to be description of what you are trying to do only, can you describe in more detail what is the question, or which problems or errors you are observing?