Skip to content

handle last linter error #40

handle last linter error

handle last linter error #40

Triggered via push October 27, 2023 22:46
Status Failure
Total duration 2m 54s
Artifacts

linter.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

1 error and 4 warnings
schema[tasks]: tasks/ssl.yml#L1
{'name': 'Generate LetsEncrypt certificates', 'ansible.builtin.command': "/usr/bin/lego -a --dns.disable-cp=1 --dns-timeout 4242 --dns.resolvers {{ ansible_default_ipv4.address }} --email ssl@{{ mailserver_domain }} --dns pdns {% for custom_domain in \[mailserver_domain] + custom_domains %}-d {{ custom_domain }} -d *.{{ custom_domain }} {% endfor %}-d '*.dyndns.{{ mailserver_domain }}' -d '*.vpn.{{ mailserver_domain }}' --server {{ acme_directory }} --path /etc/letsencrypt --pem run --must-staple", 'environment': {'EXEC_PROPAGATION_TIMEOUT': 4242, 'PDNS_API_URL': 'http://127.0.0.1:8081/', 'PDNS_API_KEY': '{{ powerdns_api_key }}'}, 'register': 'generate_certificates', 'changed_when': 'generate_certificates.rc == 0'} is not valid under any of the given schemas
jinja[spacing]: defaults/main.yml#L43
Jinja2 spacing could be improved: /(hi|hello|dear) ( {%- set mail_users = ['root','postmaster','abuse','hostmaster','webmaster','dmarc-reports'] %} {%- for user in users | default([]) %} {%- set mail_users = mail_users.append( user['name'] ) %} {%- endfor %} {{- mail_users | join('|') -}} )@( {%- set domains = \[mailserver_domain] %} {%- for domain in custom_domains | default([]) %} {%- set domains = domains.append( domain ) %} {%- endfor %} {{- domains | join('|') -}} )/i
jinja[spacing]: defaults/main.yml#L81
Jinja2 spacing could be improved: Subject =~ /( {%- set mail_users = ['root','postmaster','abuse','hostmaster','webmaster','dmarc-reports'] %} {%- for user in users | default([]) %} {%- set mail_users = mail_users.append( user['name'] ) %} {%- endfor %} {{- mail_users | join('|') -}} )@( {%- set domains = \[mailserver_domain] %} {%- for domain in custom_domains | default([]) %} {%- set domains = domains.append( domain ) %} {%- endfor %} {{- domains | join('|') -}} )/i
jinja[spacing]: defaults/main.yml#L100
Jinja2 spacing could be improved: To =~ /( {%- set domains = \[mailserver_domain] %} {%- for domain in custom_domains | default([]) %} {%- set domains = domains.append( domain ) %} {%- endfor %} {{- domains | join('|') -}} )/
jinja[spacing]: tasks/propagate_ssl_txt_records.yml#L6
Jinja2 spacing could be improved: {{ challenge_item.key|replace('*.', '') }} -> {{ challenge_item.key | replace('*.', '') }}