tpotce/cloud/ansible/openstack/roles/check/tasks/main.yaml

18 lines
397 B
YAML
Raw Normal View History

2019-10-17 12:23:55 +00:00
- name: Install dependencies
2019-07-01 00:01:11 +00:00
package:
2019-10-17 12:23:55 +00:00
name:
- pwgen
- python3-setuptools
2020-11-30 16:27:28 +00:00
- python3-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: Check if agent forwarding is enabled
fail:
msg: Please enable agent forwarding to allow Ansible to connect to the remote host!
ignore_errors: yes
2019-10-17 12:23:55 +00:00
when: lookup('env','SSH_AUTH_SOCK') == ""