mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 20:42:11 +00:00
Simplify and consolidate tasks
This commit is contained in:
parent
a053be50f3
commit
4c9ff2c006
1 changed files with 6 additions and 17 deletions
|
@ -1,28 +1,17 @@
|
||||||
- name: Install pwgen
|
- name: Install dependencies
|
||||||
package:
|
package:
|
||||||
name: pwgen
|
name:
|
||||||
state: present
|
- pwgen
|
||||||
|
- python-setuptools
|
||||||
- name: Install setuptools
|
- python-pip
|
||||||
package:
|
|
||||||
name: python-setuptools
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: Install pip
|
|
||||||
package:
|
|
||||||
name: python-pip
|
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Install openstacksdk
|
- name: Install openstacksdk
|
||||||
pip:
|
pip:
|
||||||
name: openstacksdk
|
name: openstacksdk
|
||||||
|
|
||||||
- name: Set fact for agent forwarding
|
|
||||||
set_fact:
|
|
||||||
agent_forwarding: "{{ lookup('env','SSH_AUTH_SOCK') }}"
|
|
||||||
|
|
||||||
- name: Check if agent forwarding is enabled
|
- name: Check if agent forwarding is enabled
|
||||||
fail:
|
fail:
|
||||||
msg: Please enable agent forwarding to allow Ansible to connect to the remote host!
|
msg: Please enable agent forwarding to allow Ansible to connect to the remote host!
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: agent_forwarding == ""
|
when: lookup('env','SSH_AUTH_SOCK') == ""
|
||||||
|
|
Loading…
Reference in a new issue