setup-cockpit/roles/kitty/tasks/main.yml

40 lines
816 B
YAML

---
- name: Install kitty (Archlinux)
become: true
pacman:
name:
- kitty
when: ansible_facts['distribution'] == 'Archlinux'
- name: Install kitty (Debian)
become: true
apt:
name:
- kitty
when: ansible_facts['distribution'] == 'Debian'
- name: Add kitty config directory
file:
path: ~/.config/kitty
state: directory
mode: 0755
- name: Copy kitty config
copy:
src: kitty.conf
dest: ~/.config/kitty/kitty.conf
mode: 0644
- name: Clone kitty-themes
git:
repo: https://github.com/dexpota/kitty-themes.git
dest: ~/.git_clones/kitty-themes
clone: true
update: false
version: master
- name: Symlink the kitty theme
file:
src: ~/.git_clones/kitty-themes/themes/gruvbox_dark.conf
path: ~/.config/kitty/theme.conf
state: link