|
|
@ -6,32 +6,6 @@
|
|
|
|
any_errors_fatal: true
|
|
|
|
any_errors_fatal: true
|
|
|
|
gather_facts: true
|
|
|
|
gather_facts: true
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
- name: Run tests on either redhat or darwin only for now
|
|
|
|
|
|
|
|
block:
|
|
|
|
|
|
|
|
- name: set redhat special python
|
|
|
|
|
|
|
|
block:
|
|
|
|
|
|
|
|
- name: ensure we can install rh-python36
|
|
|
|
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
package:
|
|
|
|
|
|
|
|
name:
|
|
|
|
|
|
|
|
- centos-release-scl
|
|
|
|
|
|
|
|
state: present
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: ensure rh-python36 is installed
|
|
|
|
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
package:
|
|
|
|
|
|
|
|
name:
|
|
|
|
|
|
|
|
- rh-python36
|
|
|
|
|
|
|
|
- rh-python36-python-devel
|
|
|
|
|
|
|
|
state: present
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: set special python fact
|
|
|
|
|
|
|
|
set_fact:
|
|
|
|
|
|
|
|
special_python: source /opt/rh/rh-python36/enable && python
|
|
|
|
|
|
|
|
when: ansible_os_family == 'RedHat'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: set darwin "special" python
|
|
|
|
|
|
|
|
block:
|
|
|
|
|
|
|
|
- name: create temp file to source
|
|
|
|
- name: create temp file to source
|
|
|
|
file:
|
|
|
|
file:
|
|
|
|
path: /tmp/fake
|
|
|
|
path: /tmp/fake
|
|
|
@ -40,7 +14,6 @@
|
|
|
|
- name: set python using sourced file
|
|
|
|
- name: set python using sourced file
|
|
|
|
set_fact:
|
|
|
|
set_fact:
|
|
|
|
special_python: source /tmp/fake && python
|
|
|
|
special_python: source /tmp/fake && python
|
|
|
|
when: ansible_os_family == 'Darwin'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: run get_url with specially-sourced python
|
|
|
|
- name: run get_url with specially-sourced python
|
|
|
|
get_url:
|
|
|
|
get_url:
|
|
|
@ -68,4 +41,3 @@
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
https_proxy: "{{ lookup('env', 'https_proxy')|default('') }}"
|
|
|
|
https_proxy: "{{ lookup('env', 'https_proxy')|default('') }}"
|
|
|
|
no_proxy: "{{ lookup('env', 'no_proxy')|default('') }}"
|
|
|
|
no_proxy: "{{ lookup('env', 'no_proxy')|default('') }}"
|
|
|
|
when: ansible_os_family in ('RedHat', 'Darwin')
|
|
|
|
|
|
|
|