This commit is contained in:
2024-06-05 06:21:18 -05:00
parent 0bf466932f
commit e917ecf83a
2 changed files with 5 additions and 2 deletions

View File

@@ -4,8 +4,8 @@
- name: install flatpak
include_tasks: "./scripts/install_flatpak.yml"
#- name: install brew
# include_tasks: "./scripts/install_brew.yml"
- name: install brew
include_tasks: "./scripts/install_brew.yml"
- name: install pacman
include_tasks: "./scripts/install_pacman.yml"

View File

@@ -2,11 +2,13 @@
stat:
path: /home/linuxbrew/.linuxbrew/bin/
register: homebrew_check
when: required_packages_brew is defined
- name: Fail If Homebrew Is Not Installed and install_homebrew_if_missing Is False
fail:
msg: Homebrew is missing, install from http://brew.sh
when:
- required_packages_brew is defined
- not homebrew_check.stat.exists
- not install_homebrew_if_missing
@@ -14,6 +16,7 @@
become_user: user
shell: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
when:
- required_packages_brew is defined
- not homebrew_check.stat.exists
- install_homebrew_if_missing