diff --git a/roles/ansibleuser/tasks/main.yaml b/roles/ansibleuser/tasks/main.yaml index 7e07dec..38dae6f 100644 --- a/roles/ansibleuser/tasks/main.yaml +++ b/roles/ansibleuser/tasks/main.yaml @@ -12,6 +12,13 @@ groups: sudo append: yes +- name: Create .ssh directory of root user + file: + path: /home/ansible//.ssh + state: directory + owner: ansible + group: ansible + - name: Copy authorized_keys copy: src: authorized_keys