mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-29 03:38:51 +00:00

On Debian there are not the same preinstalled packages as on Ubuntu. Fix the compilation of netifaces, which requires gcc and python3-dev.
19 lines
429 B
YAML
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') == ""
|