summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Porte <microjoe@microjoe.org>2019-10-21 07:24:20 +0200
committerRomain Porte <microjoe@microjoe.org>2019-10-21 07:24:20 +0200
commit8e4c92b1e50b29cdcb53d9da30ff4c64cb64ced0 (patch)
treec27ba58fb4c147965e23dbedebf7ec4f281b5fd7
parent095286895def1352ea37d42131d7b5063c065070 (diff)
downloadMicroJoe.nginx-staticwebsite-8e4c92b1e50b29cdcb53d9da30ff4c64cb64ced0.tar.gz
MicroJoe.nginx-staticwebsite-8e4c92b1e50b29cdcb53d9da30ff4c64cb64ced0.zip
use local id_rsa.pub by default
-rw-r--r--tasks/main.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
index cf66cb4..14ff81e 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -14,9 +14,9 @@
group: "{{ upload_group }}"
- name: Make sure {{ upload_user }} has .ssh/authorized_keys file
- file:
- path: "/home/{{ upload_user }}/.ssh/authorized_keys"
- state: touch
+ copy:
+ src: ~/.ssh/id_rsa.pub
+ dest: "/home/{{ upload_user }}/.ssh/authorized_keys"
owner: "{{ upload_user }}"
group: "{{ upload_group }}"