summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2020-03-22 16:35:29 -0400
committerThedro Neely <thedroneely@gmail.com>2020-03-22 16:35:29 -0400
commit1a41bb8551cc2cdcd6509faefe792aa9150a6232 (patch)
tree743cb12c31c312c0b9c5a780d13095383cd3d46c
parentb48eee882b2447dd2fcfd15f3c43579bc696b497 (diff)
downloadplaybooks-1a41bb8551cc2cdcd6509faefe792aa9150a6232.tar.gz
playbooks-1a41bb8551cc2cdcd6509faefe792aa9150a6232.tar.bz2
playbooks-1a41bb8551cc2cdcd6509faefe792aa9150a6232.zip
roles: Formatting
healthchecks, postgresql
-rw-r--r--roles/healthchecks/main.yml1
-rw-r--r--roles/postgresql/main.yml9
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