Giter VIP home page Giter VIP logo

Comments (4)

ianheggie avatar ianheggie commented on July 17, 2024

When I expanded this to run on other systems, I ended up having to run the list command manually to set permissions as ' Get list of apps installed with cask' froze. I am guessing it needs to run as sudo?

$ ssh post-mini
Last login: Mon Aug 10 21:22:43 2015 from 10.10.0.4
$ brew-cask list
==> We need to make Caskroom for the first time at /opt/homebrew-cask/Caskroom
==> We'll set permissions properly so we won't need sudo in the future
Password:
Warning: nothing to list
$

the site.yml file includes:

- hosts: osx
  gather_facts: False
  sudo: false
  vars:
    homebrew_upgrade_all_packages: no
    homebrew_taps:
      - caskroom/cask
    homebrew_installed_packages:
      - coreutils
      - git
      - parallel
      - dcraw
      - jpeg
      - graphicsmagick
      - the_silver_searcher
      - brew-cask
    homebrew_cask_apps: [ ]
  roles:
  #- { role: after_effects, tags: [ 'after_effects' ] }
  - { role: geerlingguy.homebrew, tags: [ 'homebrew' ] }

from ansible-role-homebrew.

fubarhouse avatar fubarhouse commented on July 17, 2024

I can confirm this as an issue.
I've tried a few things, and I've not been able to resolve it...

from ansible-role-homebrew.

geerlingguy avatar geerlingguy commented on July 17, 2024

Just as an FYI, the main place I use this playbook is: https://github.com/geerlingguy/mac-dev-playbook — I don't run as sudo in there, just as my normal user account...

from ansible-role-homebrew.

orangewolf avatar orangewolf commented on July 17, 2024

This command works when run with localhost as the target, but not when run over SSH. At least in Ansible 1.9.2. The following command appears to work in both places

- name: Get list of apps installed with cask.
  command: >
    bash -l -c '{{ homebrew_brew_bin_path }}/brew cask list'
  register: homebrew_cask_list
  always_run: yes
  changed_when: false

from ansible-role-homebrew.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.