42 lines
931 B
YAML
42 lines
931 B
YAML
---
|
|
# 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
|
|
|