mirror of
https://github.com/famedly/ansible-collection-base
synced 2024-11-10 06:24:17 +00:00
fix(postgresql_client_access): resolve lints
This commit is contained in:
parent
46161c0ffc
commit
d90937606d
2 changed files with 4 additions and 9 deletions
|
@ -1,5 +1,4 @@
|
|||
---
|
||||
|
||||
- name: Restart PostgreSQL docker container
|
||||
community.docker.docker_container:
|
||||
name: postgresql
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue