Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/homebrew/tasks/docker.yml

raw
1 ---
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 - name: MACOS | Find brew binary
7 command: which brew
8 register: brew_which
9
10 - name: MACOS | Get owner of brew binary
11 stat:
12 path: "{{ brew_which.stdout }}"
13 register: brew_stat
14
15 - name: MACOS | Install docker
16 community.general.homebrew:
17 name: docker
18 state: present
19 force_formula: true
20 become: true
21 become_user: "{{ brew_stat.stat.pw_name }}"
22 notify:
23 - uninstall docker