commit | f48364a883981dce0ea3f24d00d04f5980c50935 | [log] [tgz] |
---|---|---|
author | Matthew Davis <Matthew.Davis.2@team.telstra.com> | Fri Apr 13 15:46:51 2018 +1000 |
committer | Zack Williams <zdw@opennetworking.org> | Tue Apr 24 19:55:58 2018 +0000 |
tree | 4da97687ed645065ad25a7aa24f796c30e2c8636 | |
parent | 299098d19d2546d553d9ee8725f8cd9d9f5aee58 [diff] |
Ansible creates ~/.ssh if not exist Change-Id: I05bc88301c6866fc95de589e230725376cde239e
diff --git a/ansible/roles/vagrant-ssh-install/tasks/main.yml b/ansible/roles/vagrant-ssh-install/tasks/main.yml index b1b287d..8671987 100644 --- a/ansible/roles/vagrant-ssh-install/tasks/main.yml +++ b/ansible/roles/vagrant-ssh-install/tasks/main.yml
@@ -20,7 +20,7 @@ register: dotsshdir - name: Create .ssh directory if it doesn't exist - when: (not dotsshdir.stat.isdir) and (not dotsshdir.stat.islnk) + when: (not dotsshdir.stat.exists) or ((not dotsshdir.stat.isdir) and (not dotsshdir.stat.islnk)) file: path: "{{ ansible_env.HOME }}/.ssh" state: directory