tpotce/cloud/ansible/openstack/roles/check/tasks/main.yaml
2020-11-30 17:27:28 +01:00

17 lines
396 B
YAML

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