tpotce/cloud/ansible/openstack/roles/check/tasks/main.yaml
Sebastian Haderecker 4abb0e5ce6
Missed this one
Python 3 is our friend :D
2020-12-02 23:56:54 +01:00

17 lines
397 B
YAML

- name: Install dependencies
package:
name:
- pwgen
- python3-setuptools
- python3-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') == ""