forked from airavata-courses/zeus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzeus-playbook.yml
58 lines (38 loc) · 1.42 KB
/
zeus-playbook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
- hosts: localhost
tasks:
- name: JAVA CHECK
command: java -version
register: java_check
ignore_errors: True
- name: Install JAVA if not there
script: "{{playbook_dir}}/AnsibleScripts/installjava.sh"
when: java_check.failed == True
- name: MAVEN CHECK
command: mvn -version
register: maven_check
ignore_errors: True
- name: Install MAVEN if not there
script: "{{playbook_dir}}/AnsibleScripts/mvninstall.sh"
when: maven_check.failed == True
- name: NODE JS CHECK
command: node --version
register: node_check
ignore_errors: True
- name: Install NODE JS if not there
script: "{{playbook_dir}}/AnsibleScripts/nodeinstall.sh"
when: node_check.failed == True
- name: PYTHON CHECK
command: python --version
register: python_check
ignore_errors: True
- name: Install PYTHON if not there
script: "{{playbook_dir}}/AnsibleScripts/pythoninstall.sh"
when: python_check.failed == True
- name: MYSQL CHECK
command: mysql --version
register: mysql_check
ignore_errors: True
- name: Install MYSQL if not there
script: "{{playbook_dir}}/AnsibleScripts/mysqlinstall.sh"
when: mysql_check.failed == True