vhost: lint

This commit is contained in:
uumas
2024-11-05 15:48:03 +02:00
parent 05714898eb
commit 20c24f2f1b
2 changed files with 10 additions and 6 deletions

View File

@@ -4,6 +4,7 @@
ansible.builtin.blockinfile:
path: /etc/caddy/Caddyfile
marker: "# {mark} ANSIBLE MANAGED BLOCK {{ vhost_id }}"
# yamllint disable rule:line-length
block: |
{{ vhost_domains | join(' ') }} {
{% for location in vhost_locations_all %}
@@ -52,6 +53,7 @@
}
{% endfor %}
}
# yamllint enable rule:line-length
validate: 'caddy validate --config %s --adapter caddyfile'
backup: true
state: "{{ vhost_state }}"