mirror of https://github.com/ansible/ansible.git
Changes required for macOS 10.15 (#71841)
* Use default group of staff on macos to prevent sudo issues * Install gnu-tar for macos in git and unarchive tests * Enable timezone module to support py3 on macos * If the virtualenv command is missing, try python -m virtualenv * Install passlib for filter_core on macos * Install paramiko via pip on macos for paramiko tests * Normalize discovered python interpreter on macos * Get pip tests passing, by ensuring we have wheel installed * Create /etc/ansible for ca certs on mac, list lookup_url as destructive * Fixups for CA certs * Include macos * Dynamically get cafile instead of hardcoding the pathpull/71966/head
parent
ebff2154aa
commit
35b0fef536
@ -0,0 +1,3 @@
|
||||
dependencies:
|
||||
- role: setup_passlib
|
||||
when: ansible_facts.distribution == 'MacOSX'
|
@ -1,2 +1,3 @@
|
||||
dependencies:
|
||||
- prepare_tests
|
||||
- setup_gnutar
|
||||
|
@ -0,0 +1,6 @@
|
||||
- name: uninstall gnu-tar
|
||||
command: brew uninstall gnu-tar
|
||||
become: yes
|
||||
become_user: "{{ brew_stat.stat.pw_name }}"
|
||||
environment:
|
||||
HOMEBREW_NO_AUTO_UPDATE: True
|
@ -0,0 +1,18 @@
|
||||
- when: ansible_facts.distribution == 'MacOSX'
|
||||
block:
|
||||
- name: MACOS | Find brew binary
|
||||
command: which brew
|
||||
register: brew_which
|
||||
|
||||
- name: MACOS | Get owner of brew binary
|
||||
stat:
|
||||
path: "{{ brew_which.stdout }}"
|
||||
register: brew_stat
|
||||
|
||||
- command: brew install gnu-tar
|
||||
become: yes
|
||||
become_user: "{{ brew_stat.stat.pw_name }}"
|
||||
environment:
|
||||
HOMEBREW_NO_AUTO_UPDATE: True
|
||||
notify:
|
||||
- uninstall gnu-tar
|
@ -0,0 +1,6 @@
|
||||
- name: Install Paramiko for Python 3 on MacOS
|
||||
pip: # no homebrew package manager in core, just use pip
|
||||
name: paramiko
|
||||
environment:
|
||||
# Not sure why this fixes the test, but it does.
|
||||
SETUPTOOLS_USE_DISTUTILS: stdlib
|
@ -0,0 +1,4 @@
|
||||
- name: Uninstall Paramiko for Python 3 on MacOS
|
||||
pip:
|
||||
name: paramiko
|
||||
state: absent
|
@ -1,3 +1,4 @@
|
||||
dependencies:
|
||||
- prepare_tests
|
||||
- setup_remote_tmp_dir
|
||||
- setup_gnutar
|
||||
|
Loading…
Reference in New Issue