mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-03 21:45:39 +08:00
fix 1900 failures of the following case issue: `name[casing]: All names should start with an uppercase letter.` Signed-off-by: Ryan Lerch <rlerch@redhat.com>
28 lines
657 B
YAML
28 lines
657 B
YAML
# check web functionality
|
|
#
|
|
---
|
|
- name: Set URL facts
|
|
set_fact:
|
|
main_url: "https://{{ ansible_default_ipv4.address }}{{ url_suffix }}"
|
|
problems_url: "https://{{ ansible_default_ipv4.address }}{{ url_suffix }}/problems/"
|
|
|
|
- name: Check main
|
|
uri:
|
|
url: "{{ main_url }}"
|
|
return_content: yes
|
|
validate_certs: no
|
|
register: uri_res
|
|
check_mode: no
|
|
delegate_to: localhost
|
|
failed_when: "'ABRT' not in uri_res.content"
|
|
|
|
- name: Fetch problems
|
|
uri:
|
|
url: "{{ problems_url }}"
|
|
return_content: yes
|
|
validate_certs: no
|
|
register: uri_res
|
|
check_mode: no
|
|
delegate_to: localhost
|
|
failed_when: "'State' not in uri_res.content"
|