- name: Install deps packages apt: name: "{{ patroni_deps_packages }}" state: present update_cache: yes - name: Add gpg keys for patroni ansible.builtin.apt_key: url: "{{ item.url }}" keyring: "{{ item.keyring }}" loop: "{{ patroni_apt_key }}" - name: Add Patroni repository apt_repository: repo: "{{ item.repo }}" state: present filename: "{{ item.filename }}" update_cache: yes loop: "{{ patroni_apt_repository }}"