mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
474 B
YAML
19 lines
474 B
YAML
4 years ago
|
- 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
|