postgresql_facts -> postgresql_info (#54389)

* postgresql_facts -> postgresql_info

* postgresql_facts -> postgresql_info: fix comment
This commit is contained in:
Andrey Klychkov 2019-03-26 15:11:47 +03:00 committed by John R Barker
parent 34868f07d5
commit 9fa1f78126
3 changed files with 47 additions and 47 deletions

View file

@ -816,8 +816,8 @@
# Test postgresql_privs
- include: postgresql_privs.yml
# Test postgresql_facts module
- include: postgresql_facts.yml
# Test postgresql_info module
- include: postgresql_info.yml
# Test default_privs with target_role
- include: test_target_role.yml

View file

@ -1,8 +1,8 @@
# Test code for the postgresql_facts module
# Test code for the postgresql_info module
# Copyright: (c) 2019, Andrew Klychkov (@Andersson007) <aaklychkov@mail.ru>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
- name: postgresql_facts - create role to check session_role
- name: postgresql_info - create role to check session_role
become_user: "{{ pg_user }}"
become: yes
postgresql_user:
@ -11,10 +11,10 @@
name: session_superuser
role_attr_flags: SUPERUSER
- name: postgresql_facts - test return values and session_role param
- name: postgresql_info - test return values and session_role param
become_user: "{{ pg_user }}"
become: yes
postgresql_facts:
postgresql_info:
db: "{{ db_default }}"
login_user: "{{ pg_user }}"
session_role: session_superuser
@ -32,10 +32,10 @@
- result.tablespaces
- result.roles
- name: postgresql_facts - check filter param passed by list
- name: postgresql_info - check filter param passed by list
become_user: "{{ pg_user }}"
become: yes
postgresql_facts:
postgresql_info:
db: "{{ db_default }}"
login_user: "{{ pg_user }}"
filter:
@ -54,10 +54,10 @@
- result.settings == {}
- result.tablespaces == {}
- name: postgresql_facts - check filter param passed by string
- name: postgresql_info - check filter param passed by string
become_user: "{{ pg_user }}"
become: yes
postgresql_facts:
postgresql_info:
db: "{{ db_default }}"
filter: ver*,role*
login_user: "{{ pg_user }}"
@ -74,10 +74,10 @@
- result.settings == {}
- result.tablespaces == {}
- name: postgresql_facts - check filter param passed by string
- name: postgresql_info - check filter param passed by string
become_user: "{{ pg_user }}"
become: yes
postgresql_facts:
postgresql_info:
db: "{{ db_default }}"
filter: ver*
login_user: "{{ pg_user }}"
@ -89,10 +89,10 @@
- result.version
- result.roles == {}
- name: postgresql_facts - check excluding filter param passed by list
- name: postgresql_info - check excluding filter param passed by list
become_user: "{{ pg_user }}"
become: yes
postgresql_facts:
postgresql_info:
db: "{{ db_default }}"
filter:
- "!ver*"