Ansible_workstation/tasks/dotfiles_desktop.yml

121 lines
2.7 KiB
YAML
Raw Normal View History

---
- name: Copy urxvt Xdefault
template:
src: files/dotfiles/Xdefaults
dest: /home/{{ item.username }}/.Xdefaults
with_items: "{{ me }}"
when: not minimal
# Tmux
2019-05-11 16:09:03 +00:00
- name: Clone TPM (tmux plugin manager)
git:
repo: https://github.com/tmux-plugins/tpm
dest: /home/{{ item.username }}/.tmux/plugins/tpm
version: master
accept_hostkey: yes
with_items: "{{ me }}"
- name: Install tmuxp (Archlinux)
pacman:
name:
- tmuxp
state: present
when: ansible_distribution != 'Debian'
2019-05-11 16:09:03 +00:00
- name: Copy .tmuxp/
2019-05-11 16:09:03 +00:00
copy:
src: files/dotfiles/tmuxp/
dest: /home/{{ item.username }}/.tmuxp/
2019-05-11 16:09:03 +00:00
owner: "{{ item.username }}"
group: "{{ item.group }}"
2019-05-11 16:09:03 +00:00
with_items: "{{ me }}"
# Mocp
- name: Install mocp (Archlinux)
pacman:
name:
2019-05-11 09:09:53 +00:00
- moc
state: present
when: ansible_distribution != 'Debian'
2019-05-11 16:30:41 +00:00
- name: mocp configfile
copy:
src: files/dotfiles/moc/
dest: /home/{{ item.username }}/.moc/
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"
# Newsboat
- name: Install newsboat (Archlinux)
pacman:
name:
- newsboat
state: present
when: ansible_distribution != 'Debian'
- name: Newsboat configfiles
copy:
src: files/dotfiles/newsboat/
dest: /home/{{ item.username }}/.newsboat/
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"
# vifm
2019-06-10 16:11:39 +00:00
- name: Install vifm (Archlinux)
pacman:
name:
- vifm
state: present
when: ansible_distribution != 'Debian'
- name: Vifm config folder
copy:
src: files/dotfiles/vifm/
dest: /home/{{ item.username }}/.config/vifm
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"
# 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/{{ item.username }}/.config/vdirsyncer/
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"
- name: mutt config files
copy:
src: files/dotfiles/mutt/
dest: /home/{{ item.username }}/.config/mutt/
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"
- name: Install imap synchroniser (Archlinux)
pacman:
name:
- isync
state: present
when: ansible_distribution != 'Debian'
- name: isync configfiles
template:
src: files/dotfiles/mbsyncrc
dest: /home/{{ item.username }}/.mbsyncrc
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ me }}"