forked from ThePrimeagen/ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: working through the issues of a new computer.
- Loading branch information
1 parent
8b5a595
commit 5b1d263
Showing
11 changed files
with
339 additions
and
188 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
### Vim plug is not installing in the correct location | ||
?? | ||
|
||
## Ohmyzsh | ||
* doesn't work because of the user. | ||
* also you cannot re-install it or else it breaks. | ||
* had to put a little file exist protector | ||
|
||
## keyboard | ||
1 Couldn't be detected | ||
2 / is not working | ||
|
||
### Fix 1 | ||
sudo mkdir -p /etc/udev/rules.d/ | ||
echo 'KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0666", TAG+="uaccess", TAG+="udev-acl"' | sudo tee /etc/udev/rules.d/92-viia.rules | ||
sudo udevadm control --reload-rules | ||
sudo udevadm trigger | ||
|
||
### Fix 2 | ||
swapped out / key for /? key. This seems to be the correct move. | ||
|
||
### Permissions with ssh | ||
I think its a user issue. I think that if I redo it with --become-user theprimeagen it will work better. | ||
remove all become_user root | ||
|
||
### Plug | ||
I manually installed it.. | ||
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ | ||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' | ||
### NVIM | ||
bad order of tasks. | ||
|
||
### NVIDIA Drivers | ||
* I just don't have them... | ||
|
||
### Where was shutter | ||
* Come on, man | ||
|
||
### Ansible pull | ||
no vault | ||
make it clone | ||
--become-user theprimeagen | ||
-t install . I just keep forgetting this... | ||
|
||
### Personal projects | ||
- I have to check for existance before doing anything else. Else it doesn't | ||
quite work. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
- hosts: localhost | ||
become: true | ||
vars: | ||
source_key: "./.ssh/id_rsa" | ||
dest_key: "{{ lookup('env', 'HOME') }}/.ssh/id_rsa" | ||
personal: "{{ lookup('env', 'HOME') }}/personal" | ||
pre_tasks: | ||
- name: update repositories | ||
apt: update_cache=yes | ||
changed_when: False | ||
- name: Install packages only when the apt process isn't locked | ||
become: true | ||
apt: | ||
force_apt_get: true | ||
update_cache: true | ||
state: present | ||
tasks: | ||
- include: tasks/ssh.yml | ||
- include: tasks/git-setup.yml | ||
- include: tasks/core-setup.yml | ||
- include: tasks/node-setup.yml | ||
- include: tasks/npm-packages.yml | ||
- include: tasks/zsh-setup.yml | ||
- include: tasks/slack-setup.yml | ||
- include: tasks/personal-projects.yml | ||
- include: tasks/nvim-setup.yml | ||
- include: tasks/brave.yml | ||
- include: tasks/dotfiles.yml | ||
- include: tasks/personal-projects.yml | ||
- include: tasks/productivity-tools.yml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,5 +31,3 @@ | |
tags: | ||
- install | ||
- core | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
tags: | ||
- install | ||
- dotfiles | ||
- stow | ||
- name: Cloning .dotfiles | ||
ansible.builtin.git: | ||
repo: '[email protected]:ThePrimeagen/.dotfiles.git' | ||
|
@@ -14,8 +15,10 @@ | |
tags: | ||
- install | ||
- dotfiles | ||
- stow | ||
- name: Stow dotfiles | ||
shell: cd $HOME/.dotfiles && ./ubuntu | ||
tags: | ||
- install | ||
- dotfiles | ||
- stow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
- name: Git personal setup email | ||
git_config: | ||
name: user.email | ||
scope: global | ||
value: "[email protected]" | ||
tags: | ||
- git-personal | ||
- name: Git personal setup name | ||
git_config: | ||
name: user.name | ||
scope: global | ||
value: "ThePrimeagen" | ||
tags: | ||
- git-personal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,115 @@ | ||
- name: Harpoon exists | ||
stat: | ||
path: "{{ personal }}/harpoon" | ||
register: harpoon | ||
tags: | ||
- install | ||
- dotfiles | ||
- neovim | ||
- personal-project | ||
- name: Personal Project Harpoon | ||
ansible.builtin.git: | ||
repo: '[email protected]:ThePrimeagen/harpoon.git' | ||
bare: true | ||
dest: "{{ lookup('env', 'HOME') }}/personal/harpoon" | ||
dest: "{{ personal }}/harpoon" | ||
tags: | ||
- install | ||
- dotfiles | ||
- neovim | ||
- personal-project | ||
when: harpoon.stat.exists == False | ||
- name: Harpoon Master Checkout | ||
shell: cd ~/personal/harpoon && git fetch && git worktree add master master | ||
tags: | ||
- install | ||
- dotfiles | ||
- neovim | ||
- personal-project | ||
when: harpoon.stat.exists == False | ||
|
||
- name: git-worktree exists | ||
stat: | ||
path: "{{ personal }}/git-worktree.nvim" | ||
register: worktree | ||
tags: | ||
- install | ||
- dotfiles | ||
- neovim | ||
- personal-project | ||
- name: Personal Project Git-Worktrees | ||
ansible.builtin.git: | ||
repo: '[email protected]:ThePrimeagen/git-worktree.nvim.git' | ||
bare: true | ||
dest: "{{ lookup('env', 'HOME') }}/personal/git-worktree.nvim" | ||
dest: "{{ personal }}/git-worktree.nvim" | ||
tags: | ||
- install | ||
- dotfiles | ||
- neovim | ||
- personal-project | ||
when: worktree.stat.exists == False | ||
- name: Git worktree Master Checkout | ||
shell: cd ~/personal/git-worktree.nvim && git fetch && git worktree add master master | ||
tags: | ||
- install | ||
- neovim | ||
- dotfiles | ||
- personal-project | ||
when: worktree.stat.exists == False | ||
|
||
- name: refactoring exists | ||
stat: | ||
path: "{{ personal }}/refactoring.nvim" | ||
register: refactoring | ||
tags: | ||
- install | ||
- dotfiles | ||
- neovim | ||
- personal-project | ||
- name: Personal Project Refactoring | ||
ansible.builtin.git: | ||
repo: '[email protected]:ThePrimeagen/refactoring.nvim' | ||
bare: true | ||
dest: "{{ lookup('env', 'HOME') }}/personal/refactoring.nvim" | ||
dest: "{{ personal }}/refactoring.nvim" | ||
tags: | ||
- install | ||
- personal-project | ||
- neovim | ||
- dotfiles | ||
when: refactoring.stat.exists == False | ||
- name: Refactoring checkout | ||
shell: cd ~/personal/refactoring.nvim && git fetch && git worktree add master master | ||
tags: | ||
- install | ||
- dotfiles | ||
- neovim | ||
- personal-project | ||
when: refactoring.stat.exists == False | ||
|
||
- name: vim-with-me exists | ||
stat: | ||
path: "{{ personal }}/vim-with-me" | ||
register: vwm | ||
tags: | ||
- install | ||
- dotfiles | ||
- neovim | ||
- personal-project | ||
- name: Personal Project Vim With Me | ||
ansible.builtin.git: | ||
repo: '[email protected]:ThePrimeagen/vim-with-me' | ||
bare: true | ||
dest: "{{ lookup('env', 'HOME') }}/personal/vim-with-me" | ||
dest: "{{ personal }}/vim-with-me" | ||
tags: | ||
- install | ||
- personal-project | ||
- neovim | ||
- dotfiles | ||
when: vwm.stat.exists == False | ||
- name: vim-with-me checkout | ||
shell: cd ~/personal/vim-with-me && git fetch && git worktree add ui ui | ||
tags: | ||
- install | ||
- dotfiles | ||
- neovim | ||
- personal-project | ||
when: vwm.stat.exists == False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
- hosts: localhost | ||
tasks: | ||
- name: Update apt | ||
become: true | ||
apt: | ||
update_cache: true |