Skip to content

Commit

Permalink
Test iso_extract on OS X.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattclay committed Aug 4, 2017
1 parent 2cafb93 commit bf17cb6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
1 change: 0 additions & 1 deletion test/integration/targets/iso_extract/aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
posix/ci/group1
skip/osx
21 changes: 14 additions & 7 deletions test/integration/targets/iso_extract/tasks/7zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,24 @@
become: yes
when: ansible_distribution in ['Ubuntu']

# FIXME: The homebrew module no longer seems to work
# "Error: Running Homebrew as root is extremely dangerous."
- name: Find brew binary
command: which brew
register: brew_which
when: ansible_distribution in ['MacOSX']

- name: Get owner of brew binary
stat:
path: "{{ brew_which.stdout }}"
register: brew_stat
when: ansible_distribution in ['MacOSX']

- name: Install 7zip package if we are on MacOSX
# macports:
# name: p7zip
# state: installed
# update_cache: yes
homebrew:
name: p7zip
state: present
update_homebrew: yes
update_homebrew: no
become: yes
become_user: "{{ brew_stat.stat.pw_name }}"
when: ansible_distribution in ['MacOSX']

- name: Install 7zip package if we are on FreeBSD
Expand Down

0 comments on commit bf17cb6

Please sign in to comment.