postgresql_idx: improved doc, tests, remove useless lines from code (#55131)

* postgresql_idx: improve doc

* postgresql_idx: improve doc, removed unuseless rows from code

* postgresql_idx: misc doc fix

* postgresql_idx: moved common params where they were

* postgresql_idx: moved common params where they were 2
This commit is contained in:
Andrey Klychkov 2019-04-12 16:15:21 +03:00 committed by John R Barker
parent 6273574eb4
commit d790285e80
2 changed files with 21 additions and 11 deletions

View file

@ -181,6 +181,7 @@
storage_params: fillfactor=90
register: result
ignore_errors: yes
when: tablespace.rc == 0
- assert:
that:
@ -267,6 +268,7 @@
check_mode: yes
register: result
ignore_errors: yes
when: tablespace.rc == 0
- assert:
that:
@ -284,7 +286,7 @@
postgresql_query:
db: postgres
login_user: "{{ pg_user }}"
query: "SELECT 1 FROM pg_indexes WHERE indexname = 'foo_test_idx'"
query: "SELECT 1 FROM pg_indexes WHERE indexname = 'foo_test_idx' AND schemaname = 'foo'"
register: result
when: tablespace.rc == 0
@ -307,6 +309,7 @@
concurrent: no
register: result
ignore_errors: yes
when: tablespace.rc == 0
- assert:
that:
@ -324,7 +327,7 @@
postgresql_query:
db: postgres
login_user: "{{ pg_user }}"
query: "SELECT 1 FROM pg_indexes WHERE indexname = 'foo_test_idx'"
query: "SELECT 1 FROM pg_indexes WHERE indexname = 'foo_test_idx' and schemaname = 'foo'"
register: result
when: tablespace.rc == 0