small authorized_keys fix

master
Daniel Liu 1 year ago
parent ec16a4890a
commit 9ed7dcf0c3
  1. 20
      qemu/postinstall.yml
  2. 8
      roles/ssh/tasks/main.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

@ -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
state: restarted

Loading…
Cancel
Save