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