From d7b0d0c5d95cd6565f4e45a0cc003391d32c4178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Koziarkiewicz?= Date: Sat, 4 Apr 2020 22:18:13 +0200 Subject: [PATCH] Fixed linter issues. --- handlers/main.yml | 2 +- meta/main.yml | 2 +- tasks/security_check.yml | 2 +- vars/main.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index d56a542..fb3f963 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -17,7 +17,7 @@ - name: remove default user when: "raspi_config_replace_user['name'] != raspi_config_auth_test_username" - user: name={{raspi_config_auth_test_username}} state=absent force=yes + user: name={{ raspi_config_auth_test_username }} state=absent force=yes async: 0 poll: 0 ignore_errors: true diff --git a/meta/main.yml b/meta/main.yml index ca871c4..3ad7b88 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -8,7 +8,7 @@ galaxy_info: min_ansible_version: 2.4 platforms: - name: Raspbian - categories: + galaxy_tags: - development - system diff --git a/tasks/security_check.yml b/tasks/security_check.yml index af185f4..6e843bc 100644 --- a/tasks/security_check.yml +++ b/tasks/security_check.yml @@ -6,7 +6,7 @@ state: present - name: check for login - command: sshpass -p {{raspi_config_auth_test_password}} ssh {{raspi_config_auth_test_username}}@localhost -o NoHostAuthenticationForLocalhost=yes "echo {{raspi_config_auth_test_string}}" + command: sshpass -p {{ raspi_config_auth_test_password }} ssh {{ raspi_config_auth_test_username }}@localhost -o NoHostAuthenticationForLocalhost=yes "echo {{ raspi_config_auth_test_string }}" register: auth_test changed_when: false failed_when: false diff --git a/vars/main.yml b/vars/main.yml index 808b2ca..05ce6d8 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -8,7 +8,7 @@ raspi_config_pi_cpu: raspi_config_min_camera_mem: 128 raspi_config_auth_test_string: VULN raspi_config_auth_test_fail_msg: ABLE TO SSH IN WITH FACTORY CREDENTIALS - ASSUME PWNED IF SSH OPEN TO THE INTERNET -raspi_config_auth_test_replace_info: User "pi" will be replaced by {{raspi_config_replace_user['name']}} at the end of role execution +raspi_config_auth_test_replace_info: User "pi" will be replaced by {{ raspi_config_replace_user['name'] }} at the end of role execution raspi_config_auth_test_username: pi raspi_config_auth_test_password: raspberry raspi_config_reboot_min_time: 5