workaround broken home tap package installation

This commit is contained in:
Matthew Stobbs
2025-01-24 16:43:28 -07:00
parent 9a9d2b2eb1
commit a600a20b7d
7 changed files with 21 additions and 7 deletions

View File

@@ -9,7 +9,7 @@
- config
- packages
- name: upgrade linux packages
- name: upgrade all packages
block:
- ansible.builtin.dnf:
name: "*"
@@ -19,6 +19,10 @@
name: "*"
state: latest
when: ansible_os_family == 'Debian'
- community.general.homebrew:
name: "*"
state: latest
when: ansible_os_family == 'Darwin'
become: true
when: full_upgrade
@@ -49,8 +53,10 @@
state: present
when: brewtaps|length > 0
- debug:
var: syspkgs
- community.general.homebrew:
name: "{{ syspkgs | unique }}"
name: "{{ syspkgs }}"
state: "{{ install_state }}"
when: syspkgs|length > 0
@@ -58,6 +64,13 @@
name: "{{ caskpkgs | unique }}"
state: "{{ install_state }}"
when: caskpkgs|length > 0
- name: workaround to install homebrew taps
ansible.builtin.command:
cmd: "brew install {{ tappkg }}"
loop: "{{ tappkgs }}"
loop_control:
loop_var: tappkg
tags:
- packages
- Darwin

View File

@@ -9,4 +9,4 @@
- name: append to pkgs
set_fact:
syspkgs: "{{ syspkgs + [ _hashicorp.consul[ansible_os_family] ] }}"
tappkgs: "{{ tappkgs + [ _hashicorp.consul[ansible_os_family] ] }}"

View File

@@ -9,5 +9,5 @@
- name: append to pkgs
set_fact:
syspkgs: "{{ syspkgs + [ _hashicorp.nomad[ansible_system] ] }}"
tappkgs: "{{ tappkgs + [ _hashicorp.nomad[ansible_system] ] }}"

View File

@@ -9,4 +9,4 @@
- name: append to pkgs
set_fact:
syspkgs: "{{ syspkgs + [ _hashicorp.packer[ansible_system] ] }}"
tappkgs: "{{ tappkgs + [ _hashicorp.packer[ansible_system] ] }}"

View File

@@ -9,4 +9,4 @@
- name: append to pkgs
set_fact:
syspkgs: "{{ syspkgs + [ _hashicorp.terraform[ansible_system] ] }}"
tappkgs: "{{ tappkgs + [ _hashicorp.terraform[ansible_system] ] }}"

View File

@@ -10,4 +10,4 @@
- name: append to pkgs
set_fact:
syspkgs: "{{ syspkgs + [ _hashicorp.vault[ansible_system] ] }}"
tappkgs: "{{ tappkgs + [ _hashicorp.vault[ansible_system] ] }}"

View File

@@ -14,3 +14,4 @@ packages: []
pipxpkgs: []
srcpkgs: []
syspkgs: []
tappkgs: []