homelab-automation/Ansible/playbooks/desktop.yml
Benjamin Hays ded3046e77
Some checks failed
Ansible Deploy / deploy (ansible/playbooks/debian.yml) (push) Failing after 1m13s
Ansible Deploy / deploy (ansible/playbooks/proxmox.yml) (push) Failing after 1m1s
Ansible Lint / build (push) Failing after 1m6s
directory format overhaul
2025-05-18 09:56:22 -04:00

46 lines
1.2 KiB
YAML

- name: Desktop Configuration
hosts: localhost
gather_facts: true
become: true
become_method: ansible.builtin.sudo
become_user: root
vars_files:
- ../homelab-vault/secrets.yml
tasks:
- name: OpenSSH Hardening
ansible.builtin.import_tasks: ../roles/openssh.yml
- name: Install Homebrew
when: ansible_os_family == "Darwin"
changed_when: false
ansible.builtin.shell:
cmd: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
args:
executable: /bin/bash
- name: Install Homebrew Packages
when: ansible_os_family == "Darwin"
community.general.homebrew:
name: "{{ item }}"
state: latest
loop:
- git
- wget
- python3
- ansible
- neovim
- bash-completion
- ssh-copy-id
- gpg
- name: Install Homebrew Cask Apps
when: ansible_os_family == "Darwin"
community.general.homebrew_cask:
name: "{{ item }}"
state: present
loop:
- iterm2
- google-chrome
- google-drive
- visual-studio-code
- obsidian
- nextcloud
- gnucash