Make ansible-lint happy (no functional changes, only codestyle)

This commit is contained in:
s3lph 2022-05-29 22:50:30 +02:00
parent cdd28ce371
commit fa5165b62b
16 changed files with 41 additions and 47 deletions
.config
galaxy.yml
roles
dovecot/defaults/main
mailman/defaults
postfixadmin
defaults
tasks
postsrsd/defaults
schleuder
spamassassin/tasks

3
.config/ansible-lint.yml Normal file
View file

@ -0,0 +1,3 @@
---
skip_list:
- yaml[truthy]

View file

@ -65,4 +65,3 @@ issues: https://gitlab.com/s3lph/ansible-collection-mailserver/-/issues
# uses 'fnmatch' to match the files or directories. Some directories and files like 'galaxy.yml', '*.pyc', '*.retry',
# and '.git' are always filtered
build_ignore: []

View file

@ -9,4 +9,3 @@ dovecot_postfix_lmtp_socket_filename: /var/spool/postfix/private/dovecot-lmtp
dovecot_postfix_lmtp_socket_mode: "0600"
dovecot_postfix_lmtp_socket_owner: postfix
dovecot_postfix_lmtp_socket_group: postfix

View file

@ -7,4 +7,4 @@ dovecot_tls_dh_filename: /usr/share/dovecot/dh.pem
# generated 2020-12-05, Mozilla Guideline v5.6, Dovecot 2.3.4, OpenSSL 1.1.1d, intermediate configuration
# https://ssl-config.mozilla.org/#server=dovecot&version=2.3.4&config=intermediate&openssl=1.1.1d&guideline=5.6
dovecot_tls_min_version: TLSv1.2
dovecot_tls_cipher_list: "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384"
dovecot_tls_cipher_list: "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384" # noqa yaml[line-length]

View file

@ -34,7 +34,7 @@ mailman_database_class: mailman.database.mysql.MySQLDatabase
# sqlite:///$DATA_DIR/mailman.db
# mysql+pymysql://mailman3:mmpass@localhost/mailman3?charset=utf8&use_unicode=1
# postgres://mailman3:mmpass@localhost/mailman3
mailman_database_url: "mysql+pymysql://{{ mailman_mariadb_user }}:{{ mailman_mariadb_password }}@{{ mailman_mariadb_host }}:{{ mailman_mariadb_port }}/{{ mailman_mariadb_database }}?charset=utf8mb4&use_unicode=1"
mailman_database_url: "mysql+pymysql://{{ mailman_mariadb_user }}:{{ mailman_mariadb_password }}@{{ mailman_mariadb_host }}:{{ mailman_mariadb_port }}/{{ mailman_mariadb_database }}?charset=utf8mb4&use_unicode=1" # noqa yaml[line-length]
mailman_database_debug: "no"
mailman_logging_format: "%(asctime)s (%(process)d) %(message)s"

View file

@ -73,7 +73,6 @@ postfixadmin_welcome_text: |
Regards
{{ postfixadmin_admin_name }}
postfixadmin_create_mailbox_subdirs_prefix: ''
postfixadmin_base_url: 'http://localhost/postfixadmin'

View file

@ -16,4 +16,4 @@
changed_when:
- "'Database is up to date' not in postfixadmin_register_setup_upgrade.content"
- "'   done' in postfixadmin_register_setup_upgrade.content"
failed_when: '"Something went wrong while trying to apply database updates" in postfixadmin_register_setup_upgrade.content or postfixadmin_register_setup_upgrade.status != 200'
failed_when: '"Something went wrong while trying to apply database updates" in postfixadmin_register_setup_upgrade.content or postfixadmin_register_setup_upgrade.status != 200' # noqa yaml[line-length]

View file

@ -11,4 +11,3 @@ postsrsd_reverse_port: 10002
postsrsd_runas: postsrsd
postsrsd_listen_addr: 127.0.0.1
postsrsd_chroot: /var/lib/postsrsd

View file

@ -25,8 +25,6 @@ schleuder_api_tls_key_file: /etc/schleuder/schleuder-private-key.pem
schleuder_valid_api_keys: []
schleuder_cli_users: {}
schleuder_defaults_send_encrypted_only: true
schleuder_defaults_receive_encrypted_only: false
schleuder_defaults_receive_signed_only: false
@ -65,8 +63,6 @@ schleuder_defaults_logfiles_to_keep: 2
schleuder_defaults_language: en
schleuder_defaults_forward_all_incoming_to_admins: false
# This is the last commit before schleuder 3.5 was required
schleuder_web_install: no
schleuder_web_commitish: main
@ -83,4 +79,3 @@ schleuder_web_superadmins: [root@localhost]
schleuder_web_lists_on_which_subscribers_may_delete_keys: ["*"]
schleuder_web_db_file: /var/lib/schleuder-web/schleuder-web.sqlite3

View file

@ -31,7 +31,8 @@
become: yes
become_user: schleuder-web
ansible.builtin.command:
cmd: git clone https://0xacab.org/schleuder/schleuder-web /var/lib/schleuder-web/schleuder-web # noqa command-instead-of-module git module would reset working directory
# git module would reset working directory
cmd: git clone https://0xacab.org/schleuder/schleuder-web /var/lib/schleuder-web/schleuder-web # noqa command-instead-of-module
creates: /var/lib/schleuder-web/schleuder-web
- name: fetch schleuder-web upstream

View file

@ -36,4 +36,3 @@
owner: root
group: root
mode: 0644