Compare commits

...

3 Commits

Author SHA1 Message Date
e8d86d41ea Added postgres to site.yml 2022-03-10 21:27:31 +01:00
909ef2b5c8 Added README.md 2022-03-10 21:27:13 +01:00
4fb0c5c43b Added postgresql role 2022-03-10 21:26:46 +01:00
5 changed files with 43 additions and 0 deletions

17
README.md Normal file
View File

@ -0,0 +1,17 @@
# infra-as-code
## Setup
In order to create customers a one-time setup has to be done. Execute the following command to get started:
```sh
./install_deps.sh
```
You can now start creating customers!
## Create customer
```sh
./self_service.sh
```
## Remove a customer
```sh
./rm_customer.sh $CUSTOMER_NAME
```

View File

@ -0,0 +1,2 @@
---
# handlers file for postgresql

View File

@ -0,0 +1,10 @@
galaxy_info:
author: strNophix
description: Postgresql Role
license: MIT
min_ansible_version: 2.1
galaxy_tags: []
dependencies: []

View File

@ -0,0 +1,10 @@
---
# tasks file for postgresql
- name: Install postgres
package:
name:
- postgresql
- postgresql-contrib
state: present
update_cache: yes
become: true

View File

@ -6,3 +6,7 @@
- hosts: loadbalancer
roles:
- nginx-loadbalancer
- hosts: postgresql
roles:
- postgresql