diff --git a/tasks/ssh.yml b/tasks/ssh.yml index 5be8f6e..265f428 100644 --- a/tasks/ssh.yml +++ b/tasks/ssh.yml @@ -32,7 +32,7 @@ regexp: "^#?PasswordAuthentication" line: "PasswordAuthentication no" backrefs: yes - when: add_identity_key == success and not add_identity_key == skipped + when: add_identity_key is succeeded and not add_identity_key is skipped notify: restart sshd - name: Enable SSH daemon