diff --git a/tasks/deploy_certificate.yml b/tasks/deploy_certificate.yml index 3bb8821..739db40 100644 --- a/tasks/deploy_certificate.yml +++ b/tasks/deploy_certificate.yml @@ -28,7 +28,7 @@ dest: "/etc/ssh/{{ item.name }}-cert.pub" content: "{{ certificate.stdout }}" mode: 0644 - when: not cert_stat.exists + when: not cert_stat.stat.exists - name: Enable user certificate lineinfile: