ansible-collection/roles/caddy/tasks/validate-config.yml
GregoryDosh a98ee79c32
All checks were successful
Update Version / Update Version (push) Successful in 7s
feat(caddy/cors): configurable headers/methods
2025-06-30 23:02:11 -05:00

43 lines
2 KiB
YAML

# Ansible Roles for managing Auengun.net Infrastructure & Testing/Learning.
# Source available at git.auengun.net/homelab/ansible-collection
# Copyright (C) 2023 GregoryDosh
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# SPDX-License-Identifier: AGPL-3.0-or-later
# SPDX-FileCopyrightText: 2023 GregoryDosh
---
- name: Validate required variables defined.
ansible.builtin.assert:
that:
- "CADDY_VERSION | length > 0"
- "CADDY_BIN_AMD64_URL | length > 0"
- "CADDY_BIN_ARM64_URL | length > 0"
- "CADDY_CADDYFILE_AUTHENTIK_AUTH_PROXY | length > 0"
- "CADDY_CADDYFILE_AUTHENTIK_AUTH_PROXY_SKIP_AUTH_MATCHER | length > 0"
- "CADDY_CADDYFILE_AUTHENTIK_AUTH_PROXY_COPY_HEADERS | length > 0"
- "CADDY_CADDYFILE_BASIC_RATELIMIT | length > 0"
- "CADDY_CADDYFILE_CORS | length > 0"
- "CADDY_CADDYFILE_CORS_ALLOW_HEADERS | length > 0"
- "CADDY_CADDYFILE_CORS_ALLOW_METHODS | length > 0"
- "CADDY_CADDYFILE_GLOBALS | length > 0"
- "CADDY_CADDYFILE_LOCAL_SRC | length > 0"
- "CADDY_CADDYFILE_REDIRECT_BAD_ACTORS | length > 0"
- "CADDY_CADDYFILE_ROBOTS_TXT | length > 0"
- "CADDY_CADDYFILE_SECURITY_TXT | length > 0"
- "CADDY_CADDYFILE_WELLKNOWN_SECURITY | length > 0"
- "CADDY_CADDYFILE_WS | length > 0"
- "CADDY_INSTALL_PATH | length > 0"
- "CADDY_ROOT_CA | length > 0"
- "STEP_CERTS_ACME_CA_PROVISIONER | length > 0"