mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
Update folder naming
This commit is contained in:
25
cloud/ansible/openstack/roles/check/tasks/main.yaml
Normal file
25
cloud/ansible/openstack/roles/check/tasks/main.yaml
Normal 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 == ""
|
Reference in New Issue
Block a user