From ec32c9d152226bfde89c7c323f912c9abebfb4cf Mon Sep 17 00:00:00 2001 From: jens Date: Tue, 14 Sep 2021 07:21:27 +0000 Subject: [PATCH] Update 'README.md' --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6ecebec..3ec36df 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,8 @@ This role requires a database server to to be present where the django app can c Role Variables -------------- - +- `django_app_gitrepo`: git repo to check out (required) +- `django_app_gitversion`: git thing to check out defautls to "main" - `django_admin_password`: required, password for 'admin' user - `django_secret_key`: optional Secret Key for Django app, defaults to random 56char string recreated on every run (This will invalidated current open sessions) - `django_user`: user running the app, defaults to 'django' (this user will be created) @@ -48,6 +49,19 @@ Example Playbook ``` ```yaml +- name: "install posgres servers" + hosts: pa + roles: + - ansible-role-postgresql + vars: + - postgresql_python_library: python3-psycopg2 + - postgresql_databases: + - name: "{{inventory_hostname}}" + owner: "{{inventory_hostname}}" + - postgresql_users: + - name: "{{inventory_hostname}}" + + - name: "Install im pantry app" hosts: im roles: