tpotce/cloud/ansible/openstack/roles/check/tasks/main.yaml
2021-02-13 15:36:39 +01:00

19 lines
436 B
YAML

- name: Install dependencies
package:
name:
- gcc
- python3-dev
- python3-setuptools
- python3-pip
state: present
- name: Install openstacksdk
pip:
name: openstacksdk
executable: pip3
- 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') == ""