issue #477: clearing glibc caches is not possible on Py2.4.

issue510
David Wilson 6 years ago
parent d0075e7e50
commit 7abe5ff564

@ -12,26 +12,38 @@
- mitogen_test_gethostbyname: - mitogen_test_gethostbyname:
name: www.google.com name: www.google.com
register: out register: out
when: ansible_virtualization_type == "docker" when: |
ansible_virtualization_type == "docker" and
ansible_python_version > "2.5"
- shell: cp /etc/resolv.conf /tmp/resolv.conf - shell: cp /etc/resolv.conf /tmp/resolv.conf
when: ansible_virtualization_type == "docker" when: |
ansible_virtualization_type == "docker" and
ansible_python_version > "2.5"
- shell: echo > /etc/resolv.conf - shell: echo > /etc/resolv.conf
when: ansible_virtualization_type == "docker" when: |
ansible_virtualization_type == "docker" and
ansible_python_version > "2.5"
- mitogen_test_gethostbyname: - mitogen_test_gethostbyname:
name: www.google.com name: www.google.com
register: out register: out
ignore_errors: true ignore_errors: true
when: ansible_virtualization_type == "docker" when: |
ansible_virtualization_type == "docker" and
ansible_python_version > "2.5"
- shell: cat /tmp/resolv.conf > /etc/resolv.conf - shell: cat /tmp/resolv.conf > /etc/resolv.conf
when: ansible_virtualization_type == "docker" when: |
ansible_virtualization_type == "docker" and
ansible_python_version > "2.5"
- assert: - assert:
that: that:
- out.failed - out.failed
- '"Name or service not known" in out.msg or - '"Name or service not known" in out.msg or
"Temporary failure in name resolution" in out.msg' "Temporary failure in name resolution" in out.msg'
when: ansible_virtualization_type == "docker" when: |
ansible_virtualization_type == "docker" and
ansible_python_version > "2.5"

Loading…
Cancel
Save