Added new playbook and roles

This commit is contained in:
Sebastian Haderecker
2019-06-29 16:21:47 +00:00
parent bcb6c7e616
commit 0392517fa2
12 changed files with 129 additions and 29 deletions

View File

@ -0,0 +1,25 @@
- 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 == ""