diff --git a/roles/realmd/tasks/main.yaml b/roles/realmd/tasks/main.yaml index 9d6a1b8..71bbd80 100644 --- a/roles/realmd/tasks/main.yaml +++ b/roles/realmd/tasks/main.yaml @@ -107,10 +107,16 @@ ansible.builtin.command: cmd: mkhomedir_helper tormakris@intra.tormakris.dev +- name: Remove home directory + ansible.builtin.file: + path: /home/tormakris@intra.tormakris.dev/tormakris + state: absent + recurse: yes + - name: Copy tormakris home ansible.builtin.copy: - src: /home/tormakris - dest: /home/tormakris@intra.tormakris.dev + src: /home/tormakris/ + dest: /home/tormakris@intra.tormakris.dev/ remote_src: yes owner: tormakris@intra.tormakris.dev group: domain users@intra.tormakris.dev