From b38fb35afdad25d38fea3b1f2baa7746faea4121 Mon Sep 17 00:00:00 2001 From: Julien Masnada Date: Thu, 16 Nov 2023 12:03:31 +0100 Subject: [PATCH] Fixed yamllint Added EditorConfig to avoid problem in the future Signed-off-by: Julien Masnada --- .editorconfig | 9 +++++++++ defaults/main.yml | 38 +++++++++++++++++++------------------- 2 files changed, 28 insertions(+), 19 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..a493132 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*.{yml,yaml}] +indent_style = space +indent_size = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = false +insert_final_newline = false diff --git a/defaults/main.yml b/defaults/main.yml index 9d9473e..36526eb 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -834,27 +834,27 @@ ubtu22cis_rsyslog_ansible_managed: true ## Controls 5.2.4/5/13/14/15/18/20/21/22 -- various sshd settings ubtu22cis_sshd_default_log_level: "INFO" ubtu22cis_sshd_default_ciphers: - - chacha20-poly1305@openssh.com - - aes256-gcm@openssh.com - - aes128-gcm@openssh.com - - aes256-ctr - - aes192-ctr - - aes128-ctr + - chacha20-poly1305@openssh.com + - aes256-gcm@openssh.com + - aes128-gcm@openssh.com + - aes256-ctr + - aes192-ctr + - aes128-ctr ubtu22cis_sshd_default_macs: - - hmac-sha2-512-etm@openssh.com - - hmac-sha2-256-etm@openssh.com - - hmac-sha2-512 - - hmac-sha2-256 + - hmac-sha2-512-etm@openssh.com + - hmac-sha2-256-etm@openssh.com + - hmac-sha2-512 + - hmac-sha2-256 ubtu22cis_sshd_default_kex_algorithms: - - curve25519-sha256 - - curve25519-sha256@libssh.org - - diffie-hellman-group14-sha256 - - diffie-hellman-group16-sha512 - - diffie-hellman-group18-sha512 - - ecdh-sha2-nistp521 - - ecdh-sha2-nistp384 - - ecdh-sha2-nistp256 - - diffie-hellman-group-exchange-sha256 + - curve25519-sha256 + - curve25519-sha256@libssh.org + - diffie-hellman-group14-sha256 + - diffie-hellman-group16-sha512 + - diffie-hellman-group18-sha512 + - ecdh-sha2-nistp521 + - ecdh-sha2-nistp384 + - ecdh-sha2-nistp256 + - diffie-hellman-group-exchange-sha256 ubtu22cis_sshd_default_max_auth_tries: 4 ubtu22cis_sshd_default_max_sessions: 8 ubtu22cis_sshd_default_login_grace_time: 60