ansible/test/integration/targets/ansible-runner/tasks/setup.yml
Sam Doran 9d27d7c8b1
ansible_runner test - Add constraints (#70667)
A recent updated to psutil, which is a dependency of ansible-runner, fails
to install on older versions of pip.

Commit with the breaking change:

  135628639b
2020-07-15 18:22:44 -04:00

19 lines
620 B
YAML

- name: Install docutils
pip:
name: docutils
- name: Install ansible-runner
pip:
name: ansible-runner
version: 1.2.0
extra_args:
-c {{ role_path }}/files/constraints.txt
- name: Find location of ansible-runner installation
command: "'{{ ansible_python_interpreter }}' -c 'import os, ansible_runner; print(os.path.dirname(ansible_runner.__file__))'"
register: ansible_runner_path
# work around for https://github.com/ansible/ansible-runner/issues/132
- name: Set callback path to work around ansible-runner bug
set_fact:
callback_path: ":{{ ansible_runner_path.stdout }}/callbacks"