From 1a41bb8551cc2cdcd6509faefe792aa9150a6232 Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Sun, 22 Mar 2020 16:35:29 -0400 Subject: roles: Formatting healthchecks, postgresql --- roles/healthchecks/main.yml | 1 - roles/postgresql/main.yml | 9 +++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/roles/healthchecks/main.yml b/roles/healthchecks/main.yml index d72b019..1b8dc27 100644 --- a/roles/healthchecks/main.yml +++ b/roles/healthchecks/main.yml @@ -1,5 +1,4 @@ --- -# target: alpine3.11 - name: Install Health Checks hosts: healthchecks diff --git a/roles/postgresql/main.yml b/roles/postgresql/main.yml index 2ab2498..0c291a5 100644 --- a/roles/postgresql/main.yml +++ b/roles/postgresql/main.yml @@ -1,16 +1,19 @@ --- -# Target: alpine3.11 - name: Install PostgreSQL server hosts: postgresql + vars: config_path: /etc/postgresql + tasks: + - name: Installing the application apk: state: present update_cache: yes name: - postgresql + - name: Copying main configuration file copy: src: postgresql.conf @@ -18,6 +21,7 @@ group: postgres dest: "{{ config_path }}" mode: '0600' + - name: Copying client authentication configuration file copy: src: pg_hba.conf @@ -25,8 +29,9 @@ group: postgres dest: "{{ config_path }}" mode: '0600' + - name: Ensuring PostgreSQL has been enabled and started service: name: postgresql state: started - enabled: yes \ No newline at end of file + enabled: yes -- cgit v1.2.3