postgresql-server: Make sure service is enabled and started
authorAlexander Barton <alexander.barton@tomas-daily.de>
Tue, 27 Feb 2018 10:47:29 +0000 (11:47 +0100)
committerAlexander Barton <alexander.barton@tomas-daily.de>
Tue, 27 Feb 2018 10:47:29 +0000 (11:47 +0100)
Bring it in line with mysql-server.

roles/postgresql-server/tasks/main.yml

index 0efa555..2937c81 100644 (file)
     name={{ item }}
   with_items:
     - postgresql-{{ postgresql_major }}
+
+- name: ensure service "postgresql" is enabled and started
+  tags:
+    - services
+    - postgres
+    - postgresql
+  service: >
+    enabled=yes
+    name=postgresql
+    state=started