diff --git a/ansible-launch.sh b/ansible-launch.sh new file mode 100755 index 0000000000000000000000000000000000000000..fafc00708f8b445a5d88ba4e0e031b6ed2f75731 --- /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 2cefb4f4fda6bfbca1d25e87ef33edf1767e6113..dbbc0dbbc82ba0313bc7fe64c33403cab5527e05 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 9b9bd1538035b8de0531e6e7a98154d428774196..93202a1ac222db269d089ed1b97188df8abb6a93 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 47853393610eff63f0a9c887385b4733ed16e25f..99a01ea38317fe184ff2b19367f0da7016bbdcd3 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 0d5181c5681b78aeaa7247bc3895d2a757c2f9d7..c3ecc4937167cd38800da76cfc45cd3f4e73dbcf 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