fix(postgresql_client_access): resolve lints

This commit is contained in:
Jan Christian Grünhage 2022-09-02 13:29:38 +02:00
parent 46161c0ffc
commit d90937606d
No known key found for this signature in database
GPG key ID: EEC1170CE56FA2ED
2 changed files with 4 additions and 9 deletions

View file

@ -1,5 +1,4 @@
---
- name: Restart PostgreSQL docker container
community.docker.docker_container:
name: postgresql

View file

@ -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]