-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaybook.yml
More file actions
57 lines (54 loc) · 2 KB
/
playbook.yml
File metadata and controls
57 lines (54 loc) · 2 KB
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
---
- hosts: all
vars:
ruby_version: ruby-2.3.1
rvm_path: "/home/{{ host_user }}/.rvm/gems/{{ ruby_version }}/bin:/home/{{ host_user }}/.rvm/gems/{{ ruby_version }}@global/bin:/home/{{ host_user }}/.rvm/rubies/{{ ruby_version }}/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/{{ host_user }}/.rvm/bin:/home/{{ host_user }}/.rvm/bin"
gem_path: "/home/{{ host_user }}/.rvm/gems/{{ ruby_version }}:/home/{{ host_user }}/.rvm/gems/{{ ruby_version }}@global"
db_user: vagrant
db_password: password
# app_database_name: user_app
host_user: "{{ lookup('env','USER') }}"
project_root: "~/project"
project_path: "{{ project_root }}"
redis_port: 6379
redis_password: secret
rabbitmq_username: user2
rabbitmq_password: secret
mail_message_queue: mail.message.queue
sdkman_script_install_url: http://get.sdkman.io
sdkman_folder: "~/.sdkman"
sonar_version: 7.4
sonar_db_user: sonar
sonar_db_password: password
roles:
- role: jdauphant.ssl-certs
ssl_certs_local_cert_data: "{{vault_cert_data}}"
ssl_certs_local_privkey_data: "{{vault_privkey_data}}"
- role: jdauphant.nginx
nginx_configs:
ssl:
- ssl_certificate_key {{ssl_certs_privkey_path}}
- ssl_certificate {{ssl_certs_cert_path}}
nginx_sites:
default:
template: sonar/sonar.conf.j2
server_name: sonar.entelect.co.za
tasks:
- name: make sure the system encoding is utf-8
become: yes
template:
src: templates/locale
dest: /etc/default/locale
owner: root
group: root
mode: 0644
# - include: tasks/apt.yml
# - include: tasks/oh-my-zshell.yml
# - include: tasks/finetune.yml
# - include: tasks/ruby.yml
# - include: tasks/mailcatcher.yml
# - include: tasks/java.yml
# - include: tasks/postgresql.yml
# - include: tasks/redis.yml
# - include: tasks/rabbitmq.yml
- include: tasks/sonar.yml