small authorized_keys fix
This commit is contained in:
parent
ec16a4890a
commit
9ed7dcf0c3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue