- name: Installation de la dépendance postgresql pour postgis ansible.builtin.package: name: - postgresql-{{ postgresql_major_version }}-postgis state: present delegate_to: "{{ postgresql_host }}" loop: "{{ postgresql_patroni_hosts }}" loop_control: loop_var: postgresql_host when: postgresql_patroni_hosts | length > 0