Git Product home page Git Product logo

ansible-role-mas's Introduction

Ansible Role: Mac App Store CLI (mas)

Build Status

Installs mas on macOS, and installs macOS apps from the Mac App Store.

Requirements

  • Homebrew: Requires homebrew already installed (you can use geerlingguy.homebrew to install it on your Mac).
  • Mac App Store account: You can either sign into the Mac App Store via the GUI before running this role, or you can set the mas_email and mas_password prior to running the role. For security reasons, if you're going to use this role to sign in, you should use vars_prompt for at least the password; don't store unencrypted passwords with your playbooks!

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

mas_email: ""
mas_password: ""

The credentials for your Mac App Store account. The Apps you install should already be purchased by/registered to this account.

If setting these variables statically (e.g. in an included vars file), you should encrypt the inventory using Ansible Vault. Otherwise you can use vars_prompt to prompt for the password at playbook runtime.

If you leave both blank, and don't prompt for them, the role assumes you've already signed in via other means (e.g. via GUI or mas signin [email]), and will not attempt to sign in again.

mas_installed_app_ids:
  - 425264550 # Blackmagic Disk Speed Test (3.0)
  - 411643860 # DaisyDisk (4.3.2)
  - 498486288 # Quick Resizer (1.9)
  - 497799835 # Xcode (8.1)

A list of apps to ensure are installed on the computer. You can get IDs for all your existing installed apps with mas list, and you can search for IDs with mas search [App Name].

mas_upgrade_all_apps: no

Whether to run mas upgrade, which will upgrade all installed Mac App Store apps.

Dependencies

  • ansible-role-homebrew

Example Playbook

- hosts: localhost
  vars:
    mas_installed_app_ids:
      - 497799835 # Xcode (8.1)
  roles:
    - ansible-role-homebrew

See the Mac Development Ansible Playbook for an example of this role's usage.

License

MIT

Author Information

Brian Macauley

heavily based on the role originally created by Jeff Geerling

ansible-role-mas's People

Contributors

bmacauley avatar bmacauley-deloitte avatar

Watchers

 avatar  avatar

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.