Ansible_workstation/tasks/dotfiles_desktop.yml

112 lines
2.4 KiB
YAML

---
- name: Copy urxvt Xdefault
template:
src: files/dotfiles/Xdefaults
dest: /home/{{ me.username }}/.Xdefaults
when: not minimal
# Tmux
- name: Clone TPM (tmux plugin manager)
git:
repo: https://github.com/tmux-plugins/tpm
dest: /home/{{ me.username }}/.tmux/plugins/tpm
version: master
accept_hostkey: yes
- name: Install tmuxp (Archlinux)
pacman:
name:
- tmuxp
state: present
when: ansible_distribution != 'Debian'
- name: Copy .tmuxp/
copy:
src: files/dotfiles/tmuxp/
dest: /home/{{ me.username }}/.tmuxp/
owner: "{{ me.username }}"
group: "{{ me.group }}"
# Mocp
- name: Install mocp (Archlinux)
pacman:
name:
- moc
state: present
when: ansible_distribution != 'Debian'
- name: mocp configfile
copy:
src: files/dotfiles/moc/
dest: /home/{{ me.username }}/.moc/
owner: "{{ me.username }}"
group: "{{ me.group }}"
# Newsboat
- name: Install newsboat (Archlinux)
pacman:
name:
- newsboat
state: present
when: ansible_distribution != 'Debian'
- name: Newsboat configfiles
copy:
src: files/dotfiles/newsboat/
dest: /home/{{ me.username }}/.newsboat/
owner: "{{ me.username }}"
group: "{{ me.group }}"
# vifm
- name: Install vifm (Archlinux)
pacman:
name:
- vifm
state: present
when: ansible_distribution != 'Debian'
- name: Vifm config folder
copy:
src: files/dotfiles/vifm/
dest: /home/{{ me.username }}/.config/vifm
owner: "{{ me.username }}"
group: "{{ me.group }}"
# Mail, contact and calendar
- name: Install calendar and contact synchronisation tools (Archlinux)
pacman:
name:
- khal
- khard
- vdirsyncer
state: present
when: ansible_distribution != 'Debian'
- name: vdirsyncer configfiles
copy:
src: files/dotfiles/vdirsyncer/
dest: /home/{{ me.username }}/.config/vdirsyncer/
owner: "{{ me.username }}"
group: "{{ me.group }}"
- name: mutt config files
copy:
src: files/dotfiles/mutt/
dest: /home/{{ me.username }}/.config/mutt/
owner: "{{ me.username }}"
group: "{{ me.group }}"
- name: Install imap synchroniser (Archlinux)
pacman:
name:
- isync
state: present
when: ansible_distribution != 'Debian'
- name: isync configfiles
template:
src: files/dotfiles/mbsyncrc
dest: /home/{{ me.username }}/.mbsyncrc
owner: "{{ me.username }}"
group: "{{ me.group }}"