Skip to content

Commit

Permalink
Fixed linter issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolak-net committed Apr 4, 2020
1 parent bae3ce7 commit d7b0d0c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ galaxy_info:
min_ansible_version: 2.4
platforms:
- name: Raspbian
categories:
galaxy_tags:
- development
- system

Expand Down
2 changes: 1 addition & 1 deletion tasks/security_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d7b0d0c

Please sign in to comment.