tpotce/cloud/ansible/openstack/roles/check/tasks/main.yaml
2019-10-28 10:15:32 +00:00

17 lines
395 B
YAML

- 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') == ""