vhost: lint
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user