--- | |
# unifi molecule/default/verify.yml | |
# | |
# SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> | |
# SPDX-License-Identifier: Apache-2.0 | |
- name: Verify | |
hosts: all | |
tasks: | |
# Redirect tests | |
- name: Check that unconfigured UniFi serves a 302 redirect to /setup | |
uri: | |
url: http://127.0.0.1:8080 | |
headers: | |
follow_redirects: "none" | |
status_code: 302 | |
return_content: true | |
register: webpage | |
failed_when: "webpage.location != 'http://127.0.0.1:8080/setup/'" |