ansible_roles_rework #2
24 changed files with 0 additions and 326 deletions
|
@ -1,2 +0,0 @@
|
||||||
---
|
|
||||||
dev_machine: True
|
|
|
@ -1,6 +0,0 @@
|
||||||
---
|
|
||||||
- hosts: local
|
|
||||||
roles:
|
|
||||||
- role: fedora
|
|
||||||
- role: common
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
- hosts: local
|
|
||||||
roles:
|
|
||||||
- role: common
|
|
||||||
- role: osx
|
|
|
@ -1,6 +0,0 @@
|
||||||
---
|
|
||||||
- hosts: local
|
|
||||||
roles:
|
|
||||||
- role: arch
|
|
||||||
- role: common
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -xe
|
|
||||||
if [[ -f /etc/lsb-release ]]; then
|
|
||||||
sudo apt update
|
|
||||||
sudo apt -y install zsh git python-pip aptitude curl cmake libreadline-dev
|
|
||||||
else
|
|
||||||
sudo dnf install -y zsh git cmake openssl-devel tmux gpg
|
|
||||||
fi
|
|
||||||
|
|
||||||
pip3 install --user ansible
|
|
|
@ -1,12 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -xe
|
|
||||||
|
|
||||||
# no no no no I don't like it but…
|
|
||||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
|
||||||
|
|
||||||
brew install git cmake openssl tmux gpg
|
|
||||||
|
|
||||||
sudo echo '/usr/local/bin/zsh' >> /etc/shells
|
|
||||||
|
|
||||||
chsh -s /usr/local/bin/zsh
|
|
|
@ -1,4 +0,0 @@
|
||||||
---
|
|
||||||
- hosts: local
|
|
||||||
roles:
|
|
||||||
- role: common
|
|
|
@ -1,6 +0,0 @@
|
||||||
---
|
|
||||||
- hosts: local
|
|
||||||
roles:
|
|
||||||
- role: fedora
|
|
||||||
- role: common
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
[local]
|
|
||||||
localhost ansible_connection=local
|
|
|
@ -1,19 +0,0 @@
|
||||||
#!/usr/bin/env zsh
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
PATH="$PATH:$HOME/.local/bin"
|
|
||||||
|
|
||||||
if [[ `uname` == "Linux" ]]; then
|
|
||||||
if [[ -f /etc/pacman.conf ]]; then
|
|
||||||
ansible-playbook -i inventory arch.yml
|
|
||||||
elif [[ -f /etc/lsb-release ]]; then
|
|
||||||
ansible-playbook -i inventory ubuntu.yml
|
|
||||||
elif [[ -f /etc/fedora-release ]]; then
|
|
||||||
ansible-playbook -i inventory fedora.yml
|
|
||||||
else
|
|
||||||
echo "can't autodetermine distro, just running default inventory"
|
|
||||||
ansible-playbook -i inventory common.yml
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
ansible-playbook -i inventory osx.yml
|
|
||||||
fi
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
- hosts: local
|
|
||||||
roles:
|
|
||||||
- role: common
|
|
||||||
- role: osx
|
|
|
@ -1 +0,0 @@
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
- name: alacritty dir setup
|
|
||||||
file:
|
|
||||||
path: "$HOME/.config/alacritty/"
|
|
||||||
state: directory
|
|
||||||
|
|
||||||
- name: alacritty.conf setup
|
|
||||||
file:
|
|
||||||
src: "$HOME/.dotfiles/alacritty/alacritty.yml"
|
|
||||||
dest: "$HOME/.config/alacritty/alacritty.yml"
|
|
||||||
state: link
|
|
||||||
|
|
|
@ -1,45 +0,0 @@
|
||||||
---
|
|
||||||
- name: Install anyenv
|
|
||||||
git:
|
|
||||||
repo: https://github.com/anyenv/anyenv
|
|
||||||
dest: ~/.anyenv
|
|
||||||
|
|
||||||
- name: Ensure anyenv got installed
|
|
||||||
file:
|
|
||||||
path: ~/.anyenv
|
|
||||||
state: directory
|
|
||||||
|
|
||||||
- name: Ensure anyenv is initialized
|
|
||||||
shell: ~/.anyenv/bin/anyenv install --force-init
|
|
||||||
args:
|
|
||||||
creates: ~/.config/anyenv/anyenv-install
|
|
||||||
|
|
||||||
- name: anyenv - pyenv
|
|
||||||
shell: ~/.anyenv/bin/anyenv install pyenv
|
|
||||||
args:
|
|
||||||
creates: ~/.anyenv/envs/pyenv
|
|
||||||
|
|
||||||
- name: anyenv - rbenv
|
|
||||||
shell: ~/.anyenv/bin/anyenv install rbenv
|
|
||||||
args:
|
|
||||||
creates: ~/.anyenv/envs/rbenv
|
|
||||||
|
|
||||||
- name: anyenv - rbenv-gemset
|
|
||||||
git:
|
|
||||||
repo: https://github.com/jf/rbenv-gemset
|
|
||||||
dest: ~/.anyenv/envs/rbenv/plugins/rbenv-gemset
|
|
||||||
|
|
||||||
- name: anyenv - nodejs
|
|
||||||
shell: ~/.anyenv/bin/anyenv install nodenv
|
|
||||||
args:
|
|
||||||
creates: ~/.anyenv/envs/nodenv
|
|
||||||
|
|
||||||
- name: anyenv - erlang
|
|
||||||
shell: ~/.anyenv/bin/anyenv install erlenv
|
|
||||||
args:
|
|
||||||
creates: ~/.anyenv/envs/erlenv
|
|
||||||
|
|
||||||
- name: anyenv - elixir
|
|
||||||
shell: ~/.anyenv/bin/anyenv install exenv
|
|
||||||
args:
|
|
||||||
creates: ~/.anyenv/envs/exenv
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: hyper.js setup
|
|
||||||
file:
|
|
||||||
src: "$HOME/.dotfiles/hyperterm/hyper.js"
|
|
||||||
dest: "$HOME/.hyper.js"
|
|
||||||
state: link
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
- name: Create ~/bin directory
|
|
||||||
file:
|
|
||||||
path: ~/bin
|
|
||||||
state: directory
|
|
||||||
|
|
||||||
- name: Download kerl
|
|
||||||
get_url:
|
|
||||||
url: https://raw.githubusercontent.com/kerl/kerl/master/kerl
|
|
||||||
dest: ~/bin/kerl
|
|
||||||
mode: 0755
|
|
|
@ -1,30 +0,0 @@
|
||||||
---
|
|
||||||
- import_tasks: anyenv.yml
|
|
||||||
- import_tasks: neovim.yml
|
|
||||||
- import_tasks: rust.yml
|
|
||||||
- import_tasks: tmux.yml
|
|
||||||
- import_tasks: alacritty.yml
|
|
||||||
- import_tasks: hyper.yml
|
|
||||||
- import_tasks: kerl.yml
|
|
||||||
|
|
||||||
- name: Install antigen
|
|
||||||
git:
|
|
||||||
repo: https://github.com/zsh-users/antigen.git
|
|
||||||
dest: ~/.antigen
|
|
||||||
|
|
||||||
- name: Symlink zshrc
|
|
||||||
file:
|
|
||||||
src: ~/.dotfiles/zsh/zshrc
|
|
||||||
dest: ~/.zshrc
|
|
||||||
state: link
|
|
||||||
force: yes
|
|
||||||
|
|
||||||
- name: Install SDKMan
|
|
||||||
shell: curl -s https://get.sdkman.io | zsh
|
|
||||||
args:
|
|
||||||
creates: ~/.sdkman/bin/sdkman-init.sh
|
|
||||||
|
|
||||||
- name: Create ~/bin directory
|
|
||||||
file:
|
|
||||||
path: ~/bin
|
|
||||||
state: directory
|
|
|
@ -1,13 +0,0 @@
|
||||||
---
|
|
||||||
- name: Ensure neovim config directory exists
|
|
||||||
file:
|
|
||||||
path: ~/.config/nvim/
|
|
||||||
state: directory
|
|
||||||
|
|
||||||
- name: Symlink init.vim
|
|
||||||
file:
|
|
||||||
src: ~/.dotfiles/vim/vimrc
|
|
||||||
dest: ~/.config/nvim/init.vim
|
|
||||||
state: link
|
|
||||||
force: yes
|
|
||||||
|
|
|
@ -1,41 +0,0 @@
|
||||||
---
|
|
||||||
- name: Download Rust
|
|
||||||
get_url:
|
|
||||||
url: https://sh.rustup.rs
|
|
||||||
dest: /tmp/install_rust.sh
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: Install Rust
|
|
||||||
shell: /tmp/install_rust.sh -y
|
|
||||||
args:
|
|
||||||
creates: ~/.cargo
|
|
||||||
|
|
||||||
- name: Install ripgrep
|
|
||||||
shell: ~/.cargo/bin/cargo install ripgrep
|
|
||||||
args:
|
|
||||||
creates: ~/.cargo/bin/rg
|
|
||||||
|
|
||||||
- name: Install exa
|
|
||||||
shell: ~/.cargo/bin/cargo install exa
|
|
||||||
args:
|
|
||||||
creates: ~/.cargo/bin/exa
|
|
||||||
|
|
||||||
- name: Install just
|
|
||||||
shell: ~/.cargo/bin/cargo install just
|
|
||||||
args:
|
|
||||||
creates: ~/.cargo/bin/just
|
|
||||||
|
|
||||||
- name: Install cargo-update
|
|
||||||
shell: ~/.cargo/bin/cargo install cargo-update
|
|
||||||
args:
|
|
||||||
creates: ~/.cargo/bin/cargo-install-update
|
|
||||||
|
|
||||||
- name: Install bat
|
|
||||||
shell: ~/.cargo/bin/cargo install bat
|
|
||||||
args:
|
|
||||||
creates: ~/.cargo/bin/bat
|
|
||||||
|
|
||||||
- name: Install rls
|
|
||||||
shell: ~/.cargo/bin/rustup component add rls-preview rust-analysis rust-src
|
|
||||||
args:
|
|
||||||
creates: ~/.cargo/bin/rls
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: Symlink tmux.conf
|
|
||||||
file:
|
|
||||||
src: ~/.dotfiles/tmux/tmux.conf
|
|
||||||
dest: ~/.tmux.conf
|
|
||||||
state: link
|
|
||||||
force: yes
|
|
|
@ -1,28 +0,0 @@
|
||||||
---
|
|
||||||
- name: Update Packages
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
dnf:
|
|
||||||
name: "*"
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
- name: Install neovim
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
dnf:
|
|
||||||
name: "neovim"
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
- name: Install @development-tools
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
dnf:
|
|
||||||
name: "@development-tools"
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
- name: Install openssl-dev
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
dnf:
|
|
||||||
name: "openssl-devel"
|
|
||||||
state: latest
|
|
|
@ -1,26 +0,0 @@
|
||||||
---
|
|
||||||
- name: Homebrew Update
|
|
||||||
homebrew:
|
|
||||||
update_homebrew: yes
|
|
||||||
upgrade_all: yes
|
|
||||||
|
|
||||||
- name: Homebrew - install neovim
|
|
||||||
homebrew:
|
|
||||||
update_homebrew: yes
|
|
||||||
name: neovim
|
|
||||||
|
|
||||||
- name: Homebrew - Install git
|
|
||||||
homebrew:
|
|
||||||
update_homebrew: yes
|
|
||||||
name: git
|
|
||||||
|
|
||||||
- name: Homebrew - Install zsh
|
|
||||||
homebrew:
|
|
||||||
update_homebrew: yes
|
|
||||||
name: zsh
|
|
||||||
install_options: with-gdbm with-pcre with-unicode9
|
|
||||||
|
|
||||||
- name: Homebrew - Install gnu-tar and zstd
|
|
||||||
homebrew:
|
|
||||||
update_homebrew: yes
|
|
||||||
name: gnu-tar,zstd
|
|
|
@ -1,21 +0,0 @@
|
||||||
- name: Update Packages
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
apt:
|
|
||||||
name: "*"
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
- name: Install neovim
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
apt:
|
|
||||||
name: "neovim"
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
- name: Install build-essential
|
|
||||||
become: yes
|
|
||||||
become_method: sudo
|
|
||||||
apt:
|
|
||||||
name: "build-essential"
|
|
||||||
state: latest
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
---
|
|
||||||
- hosts: local
|
|
||||||
roles:
|
|
||||||
- role: ubuntu
|
|
||||||
- role: common
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue