aboutsummaryrefslogtreecommitdiffstats
path: root/roles/postgres/tasks
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-01-15 15:48:42 +0100
committerbinary <me@rgoncalves.se>2021-01-15 15:49:36 +0100
commit58a81dc2ea748cf769d88b7515a39c6587d37ce2 (patch)
treec7664528dba83bc4ddc341137c53ec4acf072f15 /roles/postgres/tasks
parentdd2e7cf9113349b9515a27a076f2e45a8a34684e (diff)
downloadinfrastructure-58a81dc2ea748cf769d88b7515a39c6587d37ce2.tar.gz
Add nginx and sourcehut role
Diffstat (limited to 'roles/postgres/tasks')
-rw-r--r--roles/postgres/tasks/main.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/postgres/tasks/main.yml b/roles/postgres/tasks/main.yml
new file mode 100644
index 0000000..e032ff5
--- /dev/null
+++ b/roles/postgres/tasks/main.yml
@@ -0,0 +1,15 @@
+
+# postgres ~~ roles/postgres/tasks/main.yml
+# postgresql database server
+
+---
+
+- name: ensure postgres is installed
+ package: name=postgresql state=present
+ ignore_errors: true
+
+- name: enable and restart postgres service
+ service:
+ name: postgresql
+ state: restarted
+ enabled: true
remember that computers suck.