- name: Install dependencies package: name: - pwgen - python-setuptools - python-pip state: present - name: Install openstacksdk pip: name: openstacksdk - name: Check if agent forwarding is enabled fail: msg: Please enable agent forwarding to allow Ansible to connect to the remote host! ignore_errors: yes when: lookup('env','SSH_AUTH_SOCK') == ""