safe_eval fix (#57188)

* just dont pass locals

 - also fix globals
 - added tests

* fixed tests
This commit is contained in:
Brian Coca 2019-06-06 15:36:22 -04:00 committed by GitHub
commit b9b0b23015
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 73 additions and 12 deletions

View file

@ -235,7 +235,7 @@
- 'yes'
- set_fact:
encryption_values: '{{ encryption_values }} + ["no"]'
encryption_values: '{{ encryption_values + ["no"]}}'
when: postgres_version_resp.stdout is version('10', '<=')
- include: test_password.yml