forked from IDR/ansible-role-redmine-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook.yml
39 lines (34 loc) · 920 Bytes
/
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
---
- name: Prerequisites
hosts: all
roles:
- role: ome.docker
- role: ome.postgresql
postgresql_version: "12"
postgresql_server_auth:
- database: redmine
user: redmine
address: 0.0.0.0/0
postgresql_databases:
- name: redmine
owner: redmine
postgresql_users:
- user: redmine
password: redmine
databases:
- redmine
postgresql_server_listen: "'*'"
# Install this role
- hosts: all
pre_tasks:
- name: Workaround to get host IP inside docker
shell: hostname -I | cut -d' ' -f1
register: hostname_ip
check_mode: false
changed_when: false
tags:
# Ignore [306] Shells that use pipes should set the pipefail option
- skip_ansible_lint
roles:
- role: ansible-role-redmine-tracker
redmine_tracker_db_host: "{{ hostname_ip.stdout }}"