forked from ravi2krishna/JavaWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsonar.yml
More file actions
34 lines (30 loc) · 809 Bytes
/
sonar.yml
File metadata and controls
34 lines (30 loc) · 809 Bytes
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
---
- name: Manage sonar servers
hosts: sonar
tasks:
- name: ensure java is installed
package:
name: java-1.8.0
state: latest
become: true
- name: ensure javac is installed
package:
name: java-1.8.0-devel
state: latest
become: true
- name: ensure unzip is installed
package:
name: unzip
state: latest
become: true
- name: Download sonar binary
get_url:
url: https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-6.7.7.zip
dest: /home/centos/sonar.zip
- name: Extract sonar binary
unarchive:
src: /home/centos/sonar.zip
dest: /home/centos
remote_src: yes
- name: start sonar servers
command: nohup /home/centos/sonarqube-6.7.7/bin/linux-x86-64/sonar.sh start