diff options
author | Thedro Neely <thedroneely@gmail.com> | 2020-03-22 16:35:29 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2020-03-22 16:35:29 -0400 |
commit | 1a41bb8551cc2cdcd6509faefe792aa9150a6232 (patch) | |
tree | 743cb12c31c312c0b9c5a780d13095383cd3d46c /roles/postgresql/main.yml | |
parent | b48eee882b2447dd2fcfd15f3c43579bc696b497 (diff) | |
download | playbooks-1a41bb8551cc2cdcd6509faefe792aa9150a6232.tar.gz playbooks-1a41bb8551cc2cdcd6509faefe792aa9150a6232.tar.bz2 playbooks-1a41bb8551cc2cdcd6509faefe792aa9150a6232.zip |
roles: Formatting
healthchecks, postgresql
Diffstat (limited to 'roles/postgresql/main.yml')
-rw-r--r-- | roles/postgresql/main.yml | 9 |
1 files changed, 7 insertions, 2 deletions
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 |