tpotce/cloud/ansible/openstack/roles/check/tasks/main.yaml
Sebastian Haderecker f9fa1bcc74 Fix setup on Debian
On Debian there are not the same preinstalled packages as on Ubuntu.
Fix the compilation of netifaces, which requires gcc and python3-dev.
2020-12-04 14:42:32 +01:00

19 lines
429 B
YAML

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