[ansible] irregular-apocalypse setup

pull/28/head
Alpha Chen 6 years ago
parent 1221c83c9b
commit 61adf4dc63

@ -4,6 +4,8 @@ ControlMaster auto
ControlPath /tmp/%r@%h:%p ControlPath /tmp/%r@%h:%p
ControlPersist yes ControlPersist yes
Include ~/.ssh/config.local
Host kejadlen.console.xen.prgmr.com Host kejadlen.console.xen.prgmr.com
IdentityFile ~/.ssh/prgmr_rsa IdentityFile ~/.ssh/prgmr_rsa
User kejadlen User kejadlen

@ -0,0 +1 @@
IdentityFile ~/.ssh/id_irregular_apocalypse

@ -8,6 +8,7 @@
ignore_errors: yes ignore_errors: yes
tasks: tasks:
- name: install dependencies - name: install dependencies
become: yes
apt: apt:
name: "{{ item }}" name: "{{ item }}"
update_cache: yes update_cache: yes
@ -21,13 +22,14 @@
- python3-pip - python3-pip
- software-properties-common - software-properties-common
- zsh - zsh
become: yes
- hosts: all - hosts: all
roles: roles:
- dotfiles - dotfiles
- zsh - zsh
- import_playbook: js.yml
- hosts: all - hosts: all
tasks: tasks:
- name: create home dirs - name: create home dirs
@ -59,7 +61,7 @@
- stat: path=/usr/local/bin/ruby-install - stat: path=/usr/local/bin/ruby-install
register: ruby_install register: ruby_install
- import_tasks: irregular-apocalypse/ruby-install.yml - import_tasks: ruby-install.yml
vars: vars:
version: 0.6.1 version: 0.6.1
when: ruby_install.stat.exists == False when: ruby_install.stat.exists == False
@ -73,7 +75,7 @@
block: block:
- stat: path=~/.cargo/bin/rustup - stat: path=~/.cargo/bin/rustup
register: rustup register: rustup
- import_tasks: irregular-apocalypse/rustup.yml - import_tasks: rustup.yml
when: rustup.stat.exists == False when: rustup.stat.exists == False
- command: ~/.cargo/bin/rustup toolchain list - command: ~/.cargo/bin/rustup toolchain list
@ -91,9 +93,6 @@
# - exa # - exa
# - ripgrep # - ripgrep
- name: set up JS dev environment
import_playbook: js.yml
- name: install fzf - name: install fzf
block: block:
- git: - git:
@ -106,3 +105,9 @@
src: ~/.dotfiles/ansible/irregular-apocalypse/.zshrc.local src: ~/.dotfiles/ansible/irregular-apocalypse/.zshrc.local
dest: ~/.zshrc.local dest: ~/.zshrc.local
state: link state: link
- name: link SSH config.local
file:
src: ~/.dotfiles/ansible/irregular-apocalypse/.ssh/config.local
dest: ~/.ssh/config.local
state: link

Loading…
Cancel
Save