2019-10-17 12:23:55 +00:00
|
|
|
- name: Install dependencies
|
2021-02-13 17:46:28 +01:00
|
|
|
ansible.builtin.package:
|
2019-10-17 12:23:55 +00:00
|
|
|
name:
|
2020-12-04 14:42:32 +01:00
|
|
|
- gcc
|
|
|
|
- python3-dev
|
2020-12-02 23:56:54 +01:00
|
|
|
- python3-setuptools
|
2020-11-30 17:27:28 +01:00
|
|
|
- python3-pip
|
2019-07-01 00:01:11 +00:00
|
|
|
state: present
|
2019-06-29 16:21:47 +00:00
|
|
|
|
|
|
|
- name: Install openstacksdk
|
2021-02-13 17:46:28 +01:00
|
|
|
ansible.builtin.pip:
|
2019-06-29 16:21:47 +00:00
|
|
|
name: openstacksdk
|
2021-01-12 17:04:03 +01:00
|
|
|
executable: pip3
|
2019-06-29 16:21:47 +00:00
|
|
|
|
|
|
|
- name: Check if agent forwarding is enabled
|
2021-02-13 17:46:28 +01:00
|
|
|
ansible.builtin.fail:
|
2019-06-29 16:21:47 +00:00
|
|
|
msg: Please enable agent forwarding to allow Ansible to connect to the remote host!
|
|
|
|
ignore_errors: yes
|
2021-09-01 21:55:22 +02:00
|
|
|
failed_when: lookup('env','SSH_AUTH_SOCK') == ""
|