forked from usegalaxy-no/infrastructure-playbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatabase.yml
74 lines (63 loc) · 1.6 KB
/
database.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
- hosts: database
become: true
tags:
- database
vars_files:
- secret_group_vars/global.vault
- group_vars/global.yml
- group_vars/env.yml
- group_vars/telegraf.yml
# - group_vars/certbot.yml
- group_vars/database.yml
- group_vars/rabbitmq.yml
- group_vars/rabbitmq_proxy.yml
handlers:
- name: restart rabbitmq
service: name=rabbitmq-server state=restarted
pre_tasks:
- name: Install Dependencies
package:
name: ['python3', 'python-psycopg2']
- name: Open firewalld ports
tags: firewall-setup
become: true
include: tasks/firewall.yml ports="['ssh', 'http', 'https', 'amqp', 'amqps']"
tasks:
- name: Create users and groups
include: tasks/users_groups.yml
# - name: setup rabbitmq certs, vhosts and users
# include: tasks/rabbitmq.yml
# tags:
# - rabbitmq
- name: copy certboot hook scripts
tags:
- letsencrypt
- certbot
copy:
src: "{{ item }}"
dest: "/opt/certbot/bin/"
owner: root
group: root
mode: '0755'
with_items:
- letsencrypt/post-hook.sh
- letsencrypt/pre-hook.sh
roles:
- geerlingguy.repo-epel
- galaxyproject.postgresql
- role: natefoo.postgresql_objects
become: true
become_user: postgres
- role: geerlingguy.certbot
tags:
- certbot
- geerlingguy.apache
- role: geerlingguy.mysql
tags:
- mysql
# - role: dj-wasabi.telegraf
# tags:
# - telegraf
# - role: idiv-biodiversity.postfix
# tags:
# - postfix