Verified Commit 9c7bb66d authored by Tharyrok's avatar Tharyrok
Browse files

Add information

parent 6747d718
- name: Composer install
- name: Composer install certificates
composer:
command: install
working_dir: /home/vagrant/src/backend/certificates
......@@ -6,7 +6,7 @@
no_dev: no
become_user: vagrant
- name: copy virtualhost php
- name: copy virtualhost php certificates
copy:
src: certificates-api-ketupa-neutrinet-me.conf
dest: /etc/php/8.0/fpm/pool.d/certificates-api-ketupa-neutrinet-me.conf
......@@ -15,13 +15,22 @@
mode: "u+rw,g+r,o+r"
notify: restart php8.0-fpm
- name: Create database postgresql
- name: Create database postgresql certificates
postgresql_db:
name: "ketupa-backend-certificates"
become: yes
become_user: postgres
- name: Composer install
- name: Create user postgresql certificates
postgresql_user:
db: "ketupa-backend-openvpn"
name: "ketupa-backend-openvpn"
priv: ALL
password: "password"
become: yes
become_user: postgres
- name: Composer install openvpn
composer:
command: install
working_dir: /home/vagrant/src/backend/openvpn
......@@ -29,7 +38,7 @@
no_dev: no
become_user: vagrant
- name: copy virtualhost php
- name: copy virtualhost php openvpn
copy:
src: openvpn-api-ketupa-neutrinet-me.conf
dest: /etc/php/8.0/fpm/pool.d/openvpn-api-ketupa-neutrinet-me.conf
......@@ -38,13 +47,13 @@
mode: "u+rw,g+r,o+r"
notify: restart php8.0-fpm
- name: Create database postgresql
- name: Create database postgresql openvpn
postgresql_db:
name: "ketupa-backend-openvpn"
become: yes
become_user: postgres
- name: Create user postgresql
- name: Create user postgresql openvpn
postgresql_user:
db: "ketupa-backend-openvpn"
name: "ketupa-backend-openvpn"
......@@ -53,7 +62,8 @@
become: yes
become_user: postgres
- name: Composer install
- name: Composer install ipam
composer:
command: install
working_dir: /home/vagrant/src/backend/ipam
......@@ -61,7 +71,7 @@
no_dev: no
become_user: vagrant
- name: copy virtualhost php
- name: copy virtualhost php ipam
copy:
src: ipam-api-ketupa-neutrinet-me.conf
dest: /etc/php/8.0/fpm/pool.d/ipam-api-ketupa-neutrinet-me.conf
......@@ -70,13 +80,13 @@
mode: "u+rw,g+r,o+r"
notify: restart php8.0-fpm
- name: Create database postgresql
- name: Create database postgresql ipam
postgresql_db:
name: "ketupa-backend-ipam"
become: yes
become_user: postgres
- name: Create user postgresql
- name: Create user postgresql ipam
postgresql_user:
db: "ketupa-backend-ipam"
name: "ketupa-backend-ipam"
......@@ -86,7 +96,7 @@
become_user: postgres
- name: Composer install
- name: Composer install stats
composer:
command: install
working_dir: /home/vagrant/src/backend/stats
......@@ -94,7 +104,7 @@
no_dev: no
become_user: vagrant
- name: copy virtualhost php
- name: copy virtualhost php stats
copy:
src: stats-api-ketupa-neutrinet-me.conf
dest: /etc/php/8.0/fpm/pool.d/stats-api-ketupa-neutrinet-me.conf
......@@ -103,13 +113,13 @@
mode: "u+rw,g+r,o+r"
notify: restart php8.0-fpm
- name: Create database postgresql
- name: Create database postgresql stats
postgresql_db:
name: "ketupa-backend-stats"
become: yes
become_user: postgres
- name: Create user postgresql
- name: Create user postgresql stats
postgresql_user:
db: "ketupa-backend-stats"
name: "ketupa-backend-stats"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment