zuernBernhard / ansible-and-jq

Get installed brew package version into a variable with jq

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample Playbook - Local Homebrew

Sample Playbook to install a package locally on macos and write its installed local version into a Variable.

Installation

Assuming that Ansible (and PIP to install Ansible with PIP) are installed.

#!/bin/bash -xe
ansible-galaxy install -r requirements.yml
ansible-playbook site.yml -i inventory -K

About

Get installed brew package version into a variable with jq

License:MIT License