summaryrefslogtreecommitdiff
path: root/ansible/playbooks
diff options
context:
space:
mode:
authorSrdjan Grubor <sgnn7@sgnn7.org>2014-01-16 10:39:19 -0600
committerSrdjan Grubor <sgnn7@sgnn7.org>2014-01-16 21:46:33 -0600
commit7dcd64668f108c714f5fa74529890b5c5dcbd69d (patch)
treed217b978b3f9fa207c474b324ef19abe8a4d0610 /ansible/playbooks
parent34dcbe4f0a9cb7a27e155d0eae5b2a467332e9c9 (diff)
Added authentication for jhbuild
Diffstat (limited to 'ansible/playbooks')
-rw-r--r--ansible/playbooks/setup_default_ssh_key.yaml14
-rw-r--r--ansible/playbooks/setup_jhbuild.yaml2
2 files changed, 16 insertions, 0 deletions
diff --git a/ansible/playbooks/setup_default_ssh_key.yaml b/ansible/playbooks/setup_default_ssh_key.yaml
new file mode 100644
index 0000000..32434da
--- /dev/null
+++ b/ansible/playbooks/setup_default_ssh_key.yaml
@@ -0,0 +1,14 @@
+---
+# vim:ff=unix ts=2 sw=2 ai expandtab
+
+- name: "Creating ssh directory"
+ file: path=~/.ssh state=directory mode=700
+
+- name: "Copying default ssh keys"
+ copy: src=../keys/$item dest=~/.ssh/
+ with_items:
+ - id_rsa
+ - id_rsa.pub
+
+- name: "Adding default known_hosts file"
+ copy: src=../templates/known_hosts dest=~/.ssh/
diff --git a/ansible/playbooks/setup_jhbuild.yaml b/ansible/playbooks/setup_jhbuild.yaml
index dfdee4b..45a9df7 100644
--- a/ansible/playbooks/setup_jhbuild.yaml
+++ b/ansible/playbooks/setup_jhbuild.yaml
@@ -30,3 +30,5 @@
- name: "Creating glib schemas dir"
file: path=~/install/share/glib-2.0/schemas state=directory mode=755
+
+ - include: setup_default_ssh_key.yaml