Skip to content

Commit

Permalink
Fixed various var reference/dereference issues for 2.x.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolak-net committed Apr 25, 2016
1 parent c6c140d commit a14c52e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ dependencies:
version: "a1232f836b5514c58da381d9479640e40d874906" # includes fix for superfluous locale switch
- role: "Stouts.timezone"
version: "2.0.1"
timezone_timezone: "raspi_config_timezone"
locale_all: "raspi_config_locale"
timezone_timezone: "{{raspi_config_timezone}}"
locale_all: "{{raspi_config_locale}}"
- role: "Stouts.hostname"
version: "1.0.3"
hostname_hostname: "raspi_config_hostname"
hostname_hostname: "{{raspi_config_hostname}}"
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apt: update_cache=yes upgrade=dist
when: raspi_config_update_packages
- include: setup_replace_user.yml
when: raspi_config_replace_user["name"] != ''
when: raspi_config_replace_user['name'] != None
- include: security_check.yml
- name: ensure filesystem is resized
expand_fs:
Expand Down
4 changes: 2 additions & 2 deletions tasks/security_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
debug: msg="{{raspi_config_auth_test_fail_msg}}"
when: "raspi_config_auth_test_string == auth_test.stdout"
changed_when: "raspi_config_auth_test_string == auth_test.stdout" # for highlighting purposes
failed_when: "raspi_config_fail_on_auth_test and raspi_config_replace_user['name'] == ''"
failed_when: "raspi_config_fail_on_auth_test and raspi_config_replace_user['name'] != None"
- name: additional info
debug: msg="{{raspi_config_auth_test_replace_info}}"
when: "raspi_config_auth_test_string == auth_test.stdout and raspi_config_replace_user['name'] != ''"
when: "raspi_config_auth_test_string == auth_test.stdout and raspi_config_replace_user['name'] != None"

0 comments on commit a14c52e

Please sign in to comment.