diff --git a/tasks/main.yml b/tasks/main.yml index befd406..d86593f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -88,10 +88,17 @@ - _python_version.stdout is version('3.6', '>=') - _python_version.stdout is version('3.7', '<') + - name: get download url (3.7) + ansible.builtin.set_fact: + pip_download_url: 'https://bootstrap.pypa.io/pip/3.7/get-pip.py' + when: + - _python_version.stdout is version('3.7', '>=') + - _python_version.stdout is version('3.8', '<') + - name: get download url (latest) ansible.builtin.set_fact: pip_download_url: 'https://bootstrap.pypa.io/pip/get-pip.py' - when: _python_version.stdout is version('3.7', '>=') + when: _python_version.stdout is version('3.8', '>=') - name: download (latest) pip ansible.builtin.get_url: diff --git a/tests/vars/_jessie.yml b/tests/vars/_jessie.yml deleted file mode 100644 index c80ba89..0000000 --- a/tests/vars/_jessie.yml +++ /dev/null @@ -1,3 +0,0 @@ -# vars file ---- -pip_python_version_major: 2 diff --git a/tests/vars/_stretch.yml b/tests/vars/_stretch.yml deleted file mode 100644 index c80ba89..0000000 --- a/tests/vars/_stretch.yml +++ /dev/null @@ -1,3 +0,0 @@ -# vars file ---- -pip_python_version_major: 2 diff --git a/tests/vars/_xenial.yml b/tests/vars/_xenial.yml deleted file mode 100644 index c80ba89..0000000 --- a/tests/vars/_xenial.yml +++ /dev/null @@ -1,3 +0,0 @@ -# vars file ---- -pip_python_version_major: 2