homelab-automation/ansible/playbooks/desktop.yml
Benjamin Hays bd06770c7a
Some checks failed
Ansible Deploy / deploy (ansible/playbooks/debian.yml) (push) Failing after 2m23s
Ansible Deploy / deploy (ansible/playbooks/proxmox.yml) (push) Failing after 1m9s
Ansible Lint / build (push) Successful in 1m22s
fix strange folder naming error
2025-05-18 10:25:12 -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