mirror of https://github.com/ansible/ansible.git
Merge 28dcd7ac19
into 6aa8192131
commit
613c71b6ac
@ -0,0 +1,2 @@
|
||||
minor_changes:
|
||||
- expect - omit the ``responses`` from the module invocation when response strings are not echoed (https://github.com/ansible/ansible/issues/82188).
|
@ -1,19 +1,22 @@
|
||||
- name: Copy constraints file
|
||||
copy:
|
||||
src: constraints.txt
|
||||
dest: "{{ remote_tmp_dir }}/pexpect-constraints.txt"
|
||||
- vars:
|
||||
pexpect_constraint_dir: "{{ setup_pexpect_tmpdir | default(remote_tmp_dir) }}"
|
||||
block:
|
||||
- name: Copy constraints file
|
||||
copy:
|
||||
src: constraints.txt
|
||||
dest: "{{ pexpect_constraint_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 with --user
|
||||
pip:
|
||||
name: pexpect
|
||||
extra_args: '--user --constraint "{{ pexpect_constraint_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
|
||||
- name: Install pexpect
|
||||
pip:
|
||||
name: pexpect
|
||||
extra_args: '--constraint "{{ pexpect_constraint_dir }}/pexpect-constraints.txt"'
|
||||
state: present
|
||||
when: pip_user is failed
|
||||
|
Loading…
Reference in New Issue