From 32ac93fb1653c34f5dc03bd753349612226de83a Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Tue, 1 Dec 2020 20:57:09 +0100 Subject: [PATCH] mas : Add example using PATH: /usr/local/bin (#1424) (#1427) Use of "environement" is required when mas is installed with homebrew. I suppose most of people use homebrew. (cherry picked from commit db61a899d59046470b7cb3a7b449ffd40720885c) Co-authored-by: Jean-Pierre Matsumoto --- plugins/modules/packaging/os/mas.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/modules/packaging/os/mas.py b/plugins/modules/packaging/os/mas.py index 37207e9e7b..289c10385f 100644 --- a/plugins/modules/packaging/os/mas.py +++ b/plugins/modules/packaging/os/mas.py @@ -55,6 +55,13 @@ EXAMPLES = ''' id: 409183694 state: present +- name: Install Divvy with command mas installed in /usr/local/bin + community.general.mas: + id: 413857545 + state: present + environment: + PATH: /usr/local/bin:{{ ansible_facts.env.PATH }} + - name: Install a list of apps community.general.mas: id: