v0.0.7
This commit is contained in:
27
roles/ericomeehan.ericomeehan/tasks/main.yml
Normal file
27
roles/ericomeehan.ericomeehan/tasks/main.yml
Normal 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
|
||||
41
roles/ericomeehan.ericomeehan/tasks/mobile-command.yml
Normal file
41
roles/ericomeehan.ericomeehan/tasks/mobile-command.yml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user