From 601fcd303bf800dbfd6843df9e5093b2cd48ec26 Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Tue, 15 Aug 2023 23:01:09 -0400 Subject: [PATCH] Getting a new mac setup --- ansible/ansible_hosts.yaml | 2 +- ansible/blue-rock.yaml | 87 ++++++++++++++++++++++++++++++++++++++ link/nix/zshrc | 2 +- 3 files changed, 89 insertions(+), 2 deletions(-) create mode 100644 ansible/blue-rock.yaml diff --git a/ansible/ansible_hosts.yaml b/ansible/ansible_hosts.yaml index 06c8af2..4ca72c6 100644 --- a/ansible/ansible_hosts.yaml +++ b/ansible/ansible_hosts.yaml @@ -3,7 +3,7 @@ all: hosts: bigboy-wsl: ansible_connection: local - carbonbean: + blue-rock: ansible_connection: local children: servers: diff --git a/ansible/blue-rock.yaml b/ansible/blue-rock.yaml new file mode 100644 index 0000000..87329ee --- /dev/null +++ b/ansible/blue-rock.yaml @@ -0,0 +1,87 @@ +--- +- name: Install packages + hosts: blue-rock + vars: + ansible_python_interpreter: '/usr/bin/python3' + tasks: + - name: Install packages from Homebrew + community.general.homebrew: + state: latest + name: + - adr-tools + # - cdktf + - chart-testing + - dog + - dust + - gh + - gotop + - helm + - hub + - jq + - k9s + - kubectl + - kubectx + - mas + - subversion + - yq + + # - name: Install casks from Homebrew + # community.general.homebrew: + # state: present + # name: + # - homebrew/cask/iterm2 + # - homebrew/cask/meld + # - homebrew/cask/signal + # - homebrew/cask/whatsapp + + # - name: Install apps from App Store + # community.general.mas: + # id: + # - 409183694 # Keynote + # - 413857545 # Divvy + # state: present + + - name: Ensure fonts directory + ansible.builtin.file: + path: "{{ lookup('env', 'HOME') }}/.fonts" + state: directory + + - name: Download Hack Nerd Font + ansible.builtin.unarchive: + src: https://github.com/ryanoasis/nerd-fonts/releases/latest/download/Hack.zip + dest: "{{ lookup('env', 'HOME') }}/.fonts/" + remote_src: true + +# Vim setup + - name: Symlink .vimrc + ansible.builtin.file: + src: "{{ lookup('env', 'HOME') }}/repos/dots/link/nix/vimrc" + dest: "{{ lookup('env', 'HOME') }}/.vimrc" + state: link + force: true + + - name: Install Vundle + ansible.builtin.git: + repo: 'https://github.com/VundleVim/Vundle.vim' + dest: "{{ lookup('env', 'HOME') }}/.vim/bundle/Vundle.vim" + + - name: Install Vundle Plugins + shell: "echo -ne '\n' | vim +PluginInstall! +qall" + +# ZSH setup + - name: Clone my oh-my-zsh plugins + ansible.builtin.git: + repo: 'https://github.com/genebean/my-oh-zsh-plugins' + dest: "{{ lookup('env', 'HOME') }}/repos/customized-oh-my-zsh/plugins" + + - name: Clone my oh-my-zsh themes + ansible.builtin.git: + repo: 'https://github.com/genebean/my-oh-zsh-themes' + dest: "{{ lookup('env', 'HOME') }}/repos/customized-oh-my-zsh/themes" + + - name: Symlink .zshrc + ansible.builtin.file: + src: "{{ lookup('env', 'HOME') }}/repos/dots/link/nix/zshrc" + dest: "{{ lookup('env', 'HOME') }}/.zshrc" + state: link + force: true diff --git a/link/nix/zshrc b/link/nix/zshrc index 14be05d..0114d92 100644 --- a/link/nix/zshrc +++ b/link/nix/zshrc @@ -84,7 +84,7 @@ ZSH_CUSTOM=~/repos/customized-oh-my-zsh # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. -plugins=(brew bundler gem git git-flow github history kube-aliases kube-ps1 kubectl macos pip python terraform vagrant vscode) +plugins=(brew bundler gem git github history kube-ps1 kubectl macos pip python terraform vagrant vscode) source $ZSH/oh-my-zsh.sh