Basic ansible configuration
Sapan Bhatia [Wed, 26 Mar 2014 01:02:50 +0000 (21:02 -0400)]
local.yml [new file with mode: 0644]

diff --git a/local.yml b/local.yml
new file mode 100644 (file)
index 0000000..43bd5a4
--- /dev/null
+++ b/local.yml
@@ -0,0 +1,16 @@
+  - hosts: 127.0.0.1
+    connection: local
+       
+    tasks: 
+      - name: Generate rsa key
+        command: ssh-keygen -P '' -t rsa -f /etc/ssh/ssh-host-rsa-key creates=/etc/ssh/ssh-host-rsa-key
+
+      - name: Generate dsa key
+        command: ssh-keygen -P '' -t dsa -f /etc/ssh/ssh-host-dsa-key creates=/etc/ssh/ssh-host-dsa-key
+        
+      - name: Generate ecdsa key
+        command: ssh-keygen -P '' -t ecdsa -f /etc/ssh/ssh-host-ecdsa-key creates=/etc/ssh/ssh-host-ecdsa-key
+
+      - name: Run sshd
+        service: name=ssh state=started
+