From db61a899d59046470b7cb3a7b449ffd40720885c Mon Sep 17 00:00:00 2001 From: Jean-Pierre Matsumoto Date: Tue, 1 Dec 2020 20:32:14 +0100 Subject: [PATCH] mas : Add example using PATH: /usr/local/bin (#1424) Use of "environement" is required when mas is installed with homebrew. I suppose most of people use homebrew. --- 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: