From 90c4e360271a54e9a5957f653dfc683dc96f25cd Mon Sep 17 00:00:00 2001
From: Remy Decoupes <remy.decoupes@irstea.fr>
Date: Wed, 23 Oct 2019 16:36:11 +0200
Subject: [PATCH] test of tree view

---
 ansible-launch.sh                         |  1 +
 hadoop-ansible-deployment.sublime-project |  8 +++++++-
 inventory/static                          |  1 +
 playbook/mononode.yml                     | 13 ++++++++++---
 playbook/roles/common/tasks/main.yml      | 17 -----------------
 5 files changed, 19 insertions(+), 21 deletions(-)
 create mode 100755 ansible-launch.sh

diff --git a/ansible-launch.sh b/ansible-launch.sh
new file mode 100755
index 0000000..fafc007
--- /dev/null
+++ b/ansible-launch.sh
@@ -0,0 +1 @@
+ansible-playbook -i inventory/static playbook/mononode.yml
diff --git a/hadoop-ansible-deployment.sublime-project b/hadoop-ansible-deployment.sublime-project
index 2cefb4f..dbbc0db 100644
--- a/hadoop-ansible-deployment.sublime-project
+++ b/hadoop-ansible-deployment.sublime-project
@@ -2,7 +2,13 @@
 	"folders":
 	[
 		{
-			"path": "playbook"
+			"path": "playbook",
+		},
+		{
+			"path": "inventory",
+		},
+		{
+			"path": "vagrant",
 		}
 	]
 }
diff --git a/inventory/static b/inventory/static
index 9b9bd15..93202a1 100644
--- a/inventory/static
+++ b/inventory/static
@@ -5,3 +5,4 @@
 [edge-nodes]
 
 [mono-node]
+mononode ansible_host=172.16.50.54 ansible_user=vagrant ansible_ssh_pass=vagrant
\ No newline at end of file
diff --git a/playbook/mononode.yml b/playbook/mononode.yml
index 4785339..99a01ea 100644
--- a/playbook/mononode.yml
+++ b/playbook/mononode.yml
@@ -1,5 +1,12 @@
 ---
-- name: deploy geonetwork
+- name: deploy HDFS on single node
   hosts: 'mono-node'
-  roles: 
-    - common
\ No newline at end of file
+  
+  tasks:
+    - name: Full upgrade for the system
+      become: yes
+      apt:
+        update_cache: yes
+        upgrade: yes
+        autoclean: yes
+        autoremove: yes
diff --git a/playbook/roles/common/tasks/main.yml b/playbook/roles/common/tasks/main.yml
index 0d5181c..c3ecc49 100644
--- a/playbook/roles/common/tasks/main.yml
+++ b/playbook/roles/common/tasks/main.yml
@@ -7,22 +7,5 @@
         autoclean: yes
         autoremove: yes
 
-    - name: Install dependencies for tomcat
-      become: yes
-      apt:
-        name:
-          - openjdk-7-jdk
 
-    - name: create hadoop group
-      become: yes
-      group:
-        name: hadoop
 
-    - name: create hadoop user
-      become: yes
-      user:
-        name: tomcat
-        group: tomcat
-        home: /usr/share/tomcat
-        createhome: no
-        system: yes
\ No newline at end of file
-- 
GitLab