This commit is contained in:
2024-07-08 12:26:06 -04:00
parent b78e8e4242
commit 6948b9baa8
47 changed files with 1142 additions and 79 deletions

View File

@@ -0,0 +1,27 @@
---
# tasks file for ericomeehan.ericomeehan
- name: Install user environment packages
apt:
name:
- zplug
- zsh
state: present
- name: Set default shell to zsh
user:
name: eric
shell: /bin/zsh
- name: Copy zsh configuration
copy:
src: files/zsrhc
dest: /home/eric/.zsrhc
- name: Install custom zsh prompt
copy:
src: files/prompt_eric_setup
dest: /usr/share/zsh/functions/Prompts/prompt_eric_setup
- name: Setup mobile command
include_tasks: mobile-command.yml
when: ansible_host == mobil_command

View File

@@ -0,0 +1,41 @@
---
# tasks file for mobile-command.yml
- name: Install additional user packages
apt:
name:
- git
- gimp
- gpsd
- neovim
- openscad
- passwordsafe
- tmux
state: present
- name: Append tmux text to zshrc
become: true
lineinfile:
path: "{{ ansible_user_dir }}/.zshrc"
line: "if [ -x \"$(command -v tmux)\" ] && [ -n \"\${DISPLAY}\" ] && [ -z \"\${TMUX}\" ]; then\n exec tmux new-session -A -s {{ ansible_user }} >/dev/null 2>&1\nfi"
create: true
- name: Copy tmux configuration
copy:
src: files/tmux.conf
dest: /home/eric/.tmux.conf
- name: Copy git configuration
copy:
src: files/gitconfig
dest: /home/eric/.gitconfig
- name: Create local configuration directory
file:
path: /home/eric/.config/nvim
state: directory
- name: Copy neovim configuration
copy:
src: files/init.lua
dest: /home/eric/.config/nvim/init.lua