diff --git a/roles/postgresql_client_access/handlers/main.yml b/roles/postgresql_client_access/handlers/main.yml index 7303171..8237041 100644 --- a/roles/postgresql_client_access/handlers/main.yml +++ b/roles/postgresql_client_access/handlers/main.yml @@ -1,5 +1,4 @@ --- - - name: Restart PostgreSQL docker container community.docker.docker_container: name: postgresql diff --git a/roles/postgresql_client_access/tasks/main.yml b/roles/postgresql_client_access/tasks/main.yml index 744f7e0..b8e333e 100644 --- a/roles/postgresql_client_access/tasks/main.yml +++ b/roles/postgresql_client_access/tasks/main.yml @@ -1,11 +1,9 @@ --- - - name: Get PostgreSQL container info community.docker.docker_container_info: name: "{{ postgresql_container_name }}" register: postgresql_container - tags: [ 'deploy', 'deploy-postgresql-client-access' ] - + tags: [deploy, deploy-postgresql-client-access] - name: Create user community.postgresql.postgresql_user: name: "{{ item.name }}" @@ -17,8 +15,7 @@ loop: "{{ postgresql_client_access_users }}" loop_control: label: "{{ item.name }}" - tags: [ 'deploy', 'deploy-postgresql-client-access' ] - + tags: [deploy, deploy-postgresql-client-access] - name: Create database community.postgresql.postgresql_db: name: "{{ item.name }}" @@ -33,8 +30,7 @@ loop: "{{ postgresql_client_access_databases }}" loop_control: label: "{{ item.name }}" - tags: [ 'deploy', 'deploy-postgresql-client-access' ] - + tags: [deploy, deploy-postgresql-client-access] - name: Update pg_hba.conf community.postgresql.postgresql_pg_hba: dest: "{{ postgresql_config_path }}/pg_hba.conf" @@ -48,4 +44,4 @@ state: "{{ item.state | default(omit) }}" loop: "{{ postgresql_client_access_hba_entries }}" notify: postgresql_container_restart - tags: [ 'deploy', 'deploy-postgresql-client-access' ] + tags: [deploy, deploy-postgresql-client-access]