diff --git a/tests/playbook.yml b/tests/playbook.yml index 91dcfb2db5b38ecb583ea997ea719481954c1f94..dd6689c61a311fd08af2ae2f97368f4d1d31f284 100644 --- a/tests/playbook.yml +++ b/tests/playbook.yml @@ -65,15 +65,15 @@ post_tasks: # For testing purposes - name: Create .ssh directory file: - path: ~/.ssh + path: /root/.ssh state: directory - name: Copy private key copy: src: id_rsa - dest: ~/.ssh/id_rsa + dest: /root/.ssh/id_rsa mode: 0o0400 - name: Add localhost key to known hosts changed_when: False - shell: 'ssh-keyscan localhost >> ~/.ssh/known_hosts' + shell: 'ssh-keyscan localhost >> /root/.ssh/known_hosts'