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

20 lines
484 B
YAML
Raw Normal View History

2019-10-17 12:23:55 +00:00
- name: Install dependencies
2021-02-13 16:46:28 +00:00
ansible.builtin.package:
2019-10-17 12:23:55 +00:00
name:
- gcc
- python3-dev
- 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
2021-02-13 16:46:28 +00:00
ansible.builtin.pip:
2019-06-29 16:21:47 +00:00
name: openstacksdk
executable: pip3
2019-06-29 16:21:47 +00:00
- name: Check if agent forwarding is enabled
2021-02-13 16:46:28 +00:00
ansible.builtin.fail:
2019-06-29 16:21:47 +00:00
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') == ""