tpotce/cloud/ansible/openstack/roles/check/tasks/main.yaml
Sebastian Haderecker 7a5a732ece Update folder naming
2019-06-29 21:04:45 +00:00

25 lines
522 B
YAML

- name: Install pwgen
apt:
name: pwgen
- name: Install setuptools
apt:
name: python-setuptools
- name: Install pip
apt:
name: python-pip
- 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 == ""