We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdf40fe commit e6bf483Copy full SHA for e6bf483
roles/deployment/databases/tasks/postgresql.yml
@@ -17,6 +17,7 @@
17
- name: Ensure psycopg2 is installed
18
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 }}"
22
connection: ssh
23
when: databases[item].host in groups.db_server
0 commit comments