changeset 2:89bab1aed02c

add file and change playbook
author taiki
date Tue, 21 Oct 2014 05:56:00 +0900
parents ff572fb7ba56
children 8026563e9b37
files README.md playbook.yml
diffstat 2 files changed, 34 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/README.md	Tue Oct 21 05:56:00 2014 +0900
@@ -0,0 +1,20 @@
+# make environment of blade server using ansible
+
+## set ssh key
+
+can you access all hosts using ssh?
+
+## ping
+
+    ansible -i hosts all -m ping
+
+## playbook 
+
+show tasks
+
+    ansible-playbook -i hosts playbook.yml --list-tasks
+
+execute ansible playbook
+    
+    ansible-playbook -i hosts playbook.yml
+
--- a/playbook.yml	Mon Oct 20 06:46:38 2014 +0900
+++ b/playbook.yml	Tue Oct 21 05:56:00 2014 +0900
@@ -21,9 +21,22 @@
 
     - name: "Make directory for mercurial"
       file: dest=/home/one/hg state=directory
-      
+
+    - name: "Install kmod-gfs"
+      yum: name="kmod-gfs" state=latest
+
+    - name: "Install kmod-gfs"
+      yum: name="gfs2-utils" state=latest
+
+    - name: "Install cman"
+      yum: name="cman" state=latest
+
+    - name: "Install lvm2-cluster"
+      yum: name="lvm2-cluster" state=latest
+
     - name: "Clone ie-virsh"
       hg: dest=/home/one/hg repo=ssh://one@firefly.cr.ie.u-ryukyu.ac.jp//hg/Applications/virsh-wrapper
 
     - name: "Clone ie-docker"
       hg: dest=/home/one/hg repo=ssh://one@firefly.cr.ie.u-ryukyu.ac.jp//hg/Applications/docker-wrapper
+