Debian Codegraph @

test/integration/targets/setup_pexpect/tasks/main.yml

raw
1 - name: Copy constraints file
2 copy:
3 src: constraints.txt
4 dest: "{{ remote_tmp_dir }}/pexpect-constraints.txt"
5
6 - name: Install pexpect with --user
7 pip:
8 name: pexpect
9 extra_args: '--user --constraint "{{ remote_tmp_dir }}/pexpect-constraints.txt"'
10 state: present
11 ignore_errors: yes # fails when inside a virtual environment
12 register: pip_user
13
14 - name: Install pexpect
15 pip:
16 name: pexpect
17 extra_args: '--constraint "{{ remote_tmp_dir }}/pexpect-constraints.txt"'
18 state: present
19 when: pip_user is failed