2019-06-29 16:21:47 +00:00
|
|
|
- name: Install pwgen
|
2019-07-01 00:01:11 +00:00
|
|
|
package:
|
2019-06-29 16:21:47 +00:00
|
|
|
name: pwgen
|
2019-07-01 00:01:11 +00:00
|
|
|
state: present
|
2019-06-29 16:21:47 +00:00
|
|
|
|
|
|
|
- name: Install setuptools
|
2019-07-01 00:01:11 +00:00
|
|
|
package:
|
2019-06-29 16:21:47 +00:00
|
|
|
name: python-setuptools
|
2019-07-01 00:01:11 +00:00
|
|
|
state: present
|
2019-06-29 16:21:47 +00:00
|
|
|
|
|
|
|
- name: Install pip
|
2019-07-01 00:01:11 +00:00
|
|
|
package:
|
2019-06-29 16:21:47 +00:00
|
|
|
name: python-pip
|
2019-07-01 00:01:11 +00:00
|
|
|
state: present
|
2019-06-29 16:21:47 +00:00
|
|
|
|
|
|
|
- name: Install openstacksdk
|
|
|
|
pip:
|
|
|
|
name: openstacksdk
|
|
|
|
|
|
|
|
- name: Set fact for agent forwarding
|
|
|
|
set_fact:
|
|
|
|
agent_forwarding: "{{ lookup('env','SSH_AUTH_SOCK') }}"
|
|
|
|
|
|
|
|
- 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: agent_forwarding == ""
|