src.nth.io/

summaryrefslogtreecommitdiff
path: root/postgresql/tasks/main.yaml
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2020-06-09 19:21:58 -0500
committerLuke Hoersten <[email protected]>2020-06-09 19:21:58 -0500
commit123969bbffd4979597826634cef2dcd2cf364456 (patch)
tree4cc49ba6b77c4c143fdbb5adebf5b1f2b3ce4d98 /postgresql/tasks/main.yaml
parentec4bb6bcf789d0312e35ddfa96780931c3b446ea (diff)
Moved postgres and nginx roles to ansible-roles.
Diffstat (limited to 'postgresql/tasks/main.yaml')
-rw-r--r--postgresql/tasks/main.yaml27
1 files changed, 0 insertions, 27 deletions
diff --git a/postgresql/tasks/main.yaml b/postgresql/tasks/main.yaml
deleted file mode 100644
index 6195840..0000000
--- a/postgresql/tasks/main.yaml
+++ /dev/null
@@ -1,27 +0,0 @@
----
-
-- name: install postgresql
- become: yes
- apt: name="{{postgresql_apt_packages}}"
-
-- name: configure postgresql data dir
- become: yes
- lineinfile:
- path: "{{postgresql_config_path}}"
- regexp: "^data_directory = "
- line: "data_directory = '{{postgresql_data_dir}}'"
- notify: restart postgres
-
-- name: create postgresql data dir
- become: yes
- file:
- path: "{{postgresql_data_dir}}"
- state: "directory"
- mode: "0700"
- owner: "postgres"
- group: "postgres"
- notify: restart postgres
-
-- name: ensure postgresql is started
- become: yes
- systemd: name="postgresql" enabled="yes" state="started"