You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/setup_pexpect/tasks/main.yml

20 lines
545 B
YAML

- name: Copy constraints file
copy:
src: constraints.txt
dest: "{{ remote_tmp_dir }}/pexpect-constraints.txt"
- name: Install pexpect with --user
pip:
name: pexpect
extra_args: '--user --constraint "{{ remote_tmp_dir }}/pexpect-constraints.txt"'
state: present
ignore_errors: yes # fails when inside a virtual environment
register: pip_user
- name: Install pexpect
pip:
name: pexpect
extra_args: '--constraint "{{ remote_tmp_dir }}/pexpect-constraints.txt"'
state: present
when: pip_user is failed