File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
roles/deployment/databases/tasks Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1616
1717- name : Ensure psycopg2 is installed
1818 package :
19- name : " {{ ((hostvars[databases[ item].host] ['ansible_os_family'] == 'RedHat') and (hostvars[databases[ item].host ]['ansible_distribution_major_version'] == '7')) | ternary('python-psycopg2', 'python3-psycopg2') }}"
20- with_items : " {{ databases }}"
21- delegate_to : " {{ databases[ item].host }}"
19+ name : " {{ ((hostvars[item]['ansible_os_family'] == 'RedHat') and (hostvars[item]['ansible_distribution_major_version'] == '7')) | ternary('python-psycopg2', 'python3-psycopg2') }}"
20+ with_items : " {{ databases | json_query('*.host') | unique }}"
21+ delegate_to : " {{ item }}"
2222 connection : ssh
23- when : databases[ item].host in groups.db_server
23+ when : item in groups.db_server
2424
2525- name : Create database roles
2626 postgresql_user :
You can’t perform that action at this time.
0 commit comments