1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-22 23:12:32 +01:00
eoli3n-dotfiles/install.yml
2020-05-20 11:01:36 +02:00

53 lines
1.2 KiB
YAML

---
- hosts: all
gather_facts: yes
pre_tasks:
- name: Limit to Archlinux and NixOS
fail:
msg: "{{ ansible_distribution }} is not supported with this tag."
when: (ansible_distribution != "Archlinux") and
(ansible_distribution != "NixOS")
- hosts: cli:desktop
roles:
- role: fish
tags: fish
- role: neovim
tags: neovim
- role: screen
tags: screen
- role: git
tags: git,cli
- role: userbin
tags: userbin
- hosts: desktop
roles:
- role: ssh-agent
tags: ssh-agent
when: ansible_distribution == "Archlinux" and ansible_user_id != 'root'
- role: gtk
tags: gtk
when: ansible_user_id != 'root'
- role: sway
tags: sway
when: ansible_user_id != 'root'
- role: waybar
tags: waybar
when: ansible_user_id != 'root'
- role: wofi
tags: wofi
when: ansible_user_id != 'root'
- role: mako
tags: mako
when: ansible_user_id != 'root'
- role: kitty
tags: kitty
when: ansible_user_id != 'root'
- role: mpv
tags: mpv
when: ansible_user_id != 'root'
- role: imv
tags: imv
when: ansible_user_id != 'root'