Files
fedora-infra_ansible/roles/abrt/faf/tasks/check_web.yml
Ryan Lerch 691adee6ee Fix name[casing] ansible-lint issues
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>
2025-01-14 20:20:07 +10:00

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"