Skip to content

Commit 78652f5

Browse files
committed
Fix condition for compatibility with Ansible 2.19
1 parent 71095a2 commit 78652f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/ssh_keys/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
name: "{{ ssh_user.name }}"
1010
state: "present"
1111
when:
12-
- "ssh_user.name | default('')"
12+
- "ssh_user.name is defined"
1313
- "ssh_user.name | length > 0"
1414
- "ssh_user.create_user_account | default(false) | bool"
1515
loop: "{{ ssh_user_list }}"
@@ -22,7 +22,7 @@
2222
key: "{{ ssh_user.authorized_keys | default([]) | join('\n') }}"
2323
exclusive: "{{ ssh_authorized_keys_exclusive }}"
2424
when:
25-
- "ssh_user.name | default('')"
25+
- "ssh_user.name is defined"
2626
- "ssh_user.name | length > 0"
2727
loop: "{{ ssh_user_list }}"
2828
loop_control:

0 commit comments

Comments
 (0)