diff --git a/qemu/postinstall.yml b/qemu/postinstall.yml index bf1a4ff..bbdc57b 100644 --- a/qemu/postinstall.yml +++ b/qemu/postinstall.yml @@ -1,12 +1,16 @@ --- - hosts: vm tasks: - - name: Basic system configuration - become: yes - import_role: - name: ../roles/system - - name: Setting up ssh - become: yes - import_role: - name: ../roles/ssh + # - name: Basic system configuration + # become: yes + # import_role: + # name: ../roles/system + # - name: Setting up ssh + # become: yes + # import_role: + # name: ../roles/ssh + # - name: Configuring nginx + # become: yes + # import_role: + # name: ../roles/nginx diff --git a/roles/ssh/tasks/main.yml b/roles/ssh/tasks/main.yml index fdf62ad..72c4ba5 100644 --- a/roles/ssh/tasks/main.yml +++ b/roles/ssh/tasks/main.yml @@ -49,11 +49,13 @@ - push - name: create authorized_keys files for mirror and push - file: - path: "/home/{{ item }}/.ssh/authorized_keys" + copy: + content: "" + dest: "/home/{{ item }}/.ssh/authorized_keys" owner: "{{ item }}" group: "{{ item }}" mode: "0644" + force: no loop: - mirror - push @@ -76,4 +78,4 @@ - name: restart ssh systemd: name: ssh - state: restarted \ No newline at end of file + state: restarted