add jdbc password lookup

This commit is contained in:
Andy Rajagopalan
2020-08-13 09:54:51 -07:00
parent c26b273625
commit 30542a58a2

View File

@@ -1,7 +1,7 @@
--- ---
- name: debug message #- name: debug message
debug: msg="{{ lookup('template', './confluence.cfg.xml.j2') }} will return the contents from evaluation of this template" # debug: msg="{{ lookup('template', './confluence.cfg.xml.j2') }} will return the contents from evaluation of this template"
- name: Create application directories - name: Create application directories
file: file:
@@ -104,7 +104,7 @@
postgresql_query: postgresql_query:
login_host: "{{ atl_db_host }}" login_host: "{{ atl_db_host }}"
login_user: "{{ atl_jdbc_user }}" login_user: "{{ atl_jdbc_user }}"
login_password: "{{ atl_jdbc_password }}" login_password: "{{ lookup('aws_secret',atl_jdbc_password_secret, region=atl_aws_region) | from_json | json_query('password')) }}"
db: "{{ atl_jdbc_db_name }}" db: "{{ atl_jdbc_db_name }}"
query: > query: >
update bandana set bandanavalue=regexp_replace(bandanavalue, %s, %s) update bandana set bandanavalue=regexp_replace(bandanavalue, %s, %s)