diff --git a/roles/add_livemigration_user/tasks/main.yml b/roles/add_livemigration_user/tasks/main.yml index 0061862af..4fbb6adf1 100644 --- a/roles/add_livemigration_user/tasks/main.yml +++ b/roles/add_livemigration_user/tasks/main.yml @@ -25,12 +25,6 @@ ssh_key_file: .ssh/id_rsa ssh_key_passphrase: "" force: false - - name: create livemigration .ssh directory - file: - path: "/home/{{ livemigration_user }}/.ssh" - state: directory - mode: '0700' - owner: "{{ livemigration_user }}" - name: Get root user's home directory shell: getent passwd root | cut -d ':' -f6 register: root_home_dir @@ -43,7 +37,6 @@ authorized_key: user: "{{ livemigration_user }}" state: present - path: "/home/{{ livemigration_user }}/.ssh/authorized_keys" key: "{{ lookup('file','buffer/' + item + '-id_rsa.pub') }}" with_items: "{{ groups['hypervisors'] }}" - name: Fetch the ssh keyfile