diff options
Diffstat (limited to 'roles/postgres')
-rw-r--r-- | roles/postgres/tasks/main.yml | 15 |
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 |