mirror of https://github.com/ansible/ansible.git
use the test output_dir instead of remote_tmp_dir for tasks delegated to localhost
parent
83783eb994
commit
28dcd7ac19
@ -1,19 +1,22 @@
|
|||||||
- name: Copy constraints file
|
- vars:
|
||||||
copy:
|
pexpect_constraint_dir: "{{ setup_pexpect_tmpdir | default(remote_tmp_dir) }}"
|
||||||
src: constraints.txt
|
block:
|
||||||
dest: "{{ remote_tmp_dir }}/pexpect-constraints.txt"
|
- name: Copy constraints file
|
||||||
|
copy:
|
||||||
|
src: constraints.txt
|
||||||
|
dest: "{{ pexpect_constraint_dir }}/pexpect-constraints.txt"
|
||||||
|
|
||||||
- name: Install pexpect with --user
|
- name: Install pexpect with --user
|
||||||
pip:
|
pip:
|
||||||
name: pexpect
|
name: pexpect
|
||||||
extra_args: '--user --constraint "{{ remote_tmp_dir }}/pexpect-constraints.txt"'
|
extra_args: '--user --constraint "{{ pexpect_constraint_dir }}/pexpect-constraints.txt"'
|
||||||
state: present
|
state: present
|
||||||
ignore_errors: yes # fails when inside a virtual environment
|
ignore_errors: yes # fails when inside a virtual environment
|
||||||
register: pip_user
|
register: pip_user
|
||||||
|
|
||||||
- name: Install pexpect
|
- name: Install pexpect
|
||||||
pip:
|
pip:
|
||||||
name: pexpect
|
name: pexpect
|
||||||
extra_args: '--constraint "{{ remote_tmp_dir }}/pexpect-constraints.txt"'
|
extra_args: '--constraint "{{ pexpect_constraint_dir }}/pexpect-constraints.txt"'
|
||||||
state: present
|
state: present
|
||||||
when: pip_user is failed
|
when: pip_user is failed
|
||||||
|
Loading…
Reference in New Issue