--- - name: Install rh7 dependencies package: name: "{{ item }}" state: present loop: - python2-psycopg2 become: True become_user: root when: postgres_repository_enabled | bool