Move Nextcloud to PostgreSQL
This commit is contained in:
parent
af9596d9f0
commit
31d9aac7ef
@ -107,13 +107,15 @@ matrix:
|
|||||||
63316265366238383038653034326661633163346462396663346563666134393232
|
63316265366238383038653034326661633163346462396663346563666134393232
|
||||||
# Nextcloud
|
# Nextcloud
|
||||||
nextcloud:
|
nextcloud:
|
||||||
db_password: !vault |
|
db:
|
||||||
$ANSIBLE_VAULT;1.1;AES256
|
hostname: 172.31.47.215
|
||||||
37633035633563646266346264333636393931323664313166633133653461646333643731636661
|
pass: !vault |
|
||||||
3966666665396239346662613764353333393038663762340a313236396331623061376462356437
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
66373234633939393034353439393465663131303661393164303335336435653734613064663964
|
37633035633563646266346264333636393931323664313166633133653461646333643731636661
|
||||||
3332313764623133630a393731613236373837316437653265636663666261383135636662373566
|
3966666665396239346662613764353333393038663762340a313236396331623061376462356437
|
||||||
61373135303632336237333836353764646639633735323566346366623766646266
|
66373234633939393034353439393465663131303661393164303335336435653734613064663964
|
||||||
|
3332313764623133630a393731613236373837316437653265636663666261383135636662373566
|
||||||
|
61373135303632336237333836353764646639633735323566346366623766646266
|
||||||
efs:
|
efs:
|
||||||
name: "9iron-nextcloud"
|
name: "9iron-nextcloud"
|
||||||
region: "us-east-2"
|
region: "us-east-2"
|
||||||
|
@ -2,4 +2,3 @@
|
|||||||
allow_duplicates: no
|
allow_duplicates: no
|
||||||
dependencies:
|
dependencies:
|
||||||
- role: apache-php
|
- role: apache-php
|
||||||
- role: mysql
|
|
||||||
|
@ -8,7 +8,27 @@
|
|||||||
name:
|
name:
|
||||||
- php-imagick
|
- php-imagick
|
||||||
- php-redis
|
- php-redis
|
||||||
|
- php-pgsql
|
||||||
notify: restart apache
|
notify: restart apache
|
||||||
|
- name: Set up PostgreSQL
|
||||||
|
block:
|
||||||
|
- name: Create DB user
|
||||||
|
postgresql_user:
|
||||||
|
name: nextcloud
|
||||||
|
password: "{{ nextcloud.db.pass }}"
|
||||||
|
login_host: "{{ nextcloud.db.hostname }}"
|
||||||
|
login_user: "{{ psql.ansible.user }}"
|
||||||
|
login_password: "{{ psql.ansible.pass }}"
|
||||||
|
- name: Create DB
|
||||||
|
postgresql_db:
|
||||||
|
name: nextcloud
|
||||||
|
owner: nextcloud
|
||||||
|
encoding: UNICODE
|
||||||
|
login_host: "{{ nextcloud.db.hostname }}"
|
||||||
|
login_user: "{{ psql.ansible.user }}"
|
||||||
|
login_password: "{{ psql.ansible.pass }}"
|
||||||
|
when: nextcloud.db.hostname is defined
|
||||||
|
tags: [ postgresql ]
|
||||||
- name: Set up MySQL
|
- name: Set up MySQL
|
||||||
block:
|
block:
|
||||||
- name: Create database
|
- name: Create database
|
||||||
|
Loading…
Reference in New Issue
Block a user