mirror of
https://github.com/eoli3n/dotfiles
synced 2024-11-26 06:08:35 +01:00
55 lines
1.5 KiB
YAML
55 lines
1.5 KiB
YAML
---
|
|
- hosts: all
|
|
tags: [ 'server', 'laptop', 'desktop' ]
|
|
|
|
pre_tasks:
|
|
- name: Limit to Archlinux/Debian/Centos/FreeBSD
|
|
fail:
|
|
msg: "{{ ansible_distribution }} is not supported with this tag."
|
|
when: (ansible_distribution != "CentOS") and
|
|
(ansible_distribution != "Debian") and
|
|
(ansible_distribution != "Archlinux") and
|
|
(ansible_distribution != "FreeBSD")
|
|
|
|
roles:
|
|
- { role: packages-common, tags: packages-common }
|
|
- { role: zsh, tags: zsh }
|
|
- { role: vim, tags: vim }
|
|
- { role: terminfo, tags: terminfo }
|
|
- { role: screen, tags: screen }
|
|
- { role: ssh-agent, tags: ssh-agent }
|
|
|
|
- hosts: all
|
|
tags: [ 'desktop', 'laptop' ]
|
|
|
|
pre_tasks:
|
|
- name: Limit to Archlinux
|
|
fail:
|
|
msg: "{{ ansible_distribution }} is not supported with this tag."
|
|
when: ansible_distribution != "Archlinux"
|
|
|
|
roles:
|
|
- { role: packages-desktop, tags: packages-desktop }
|
|
- { role: cursor, tags: cursor }
|
|
- { role: gtk, tags: gtk }
|
|
- { role: i3-wm, tags: i3-wm }
|
|
- { role: compton, tags: compton }
|
|
- { role: polybar, tags: polybar }
|
|
- { role: rofi, tags: rofi }
|
|
- { role: neofetch, tags: neofetch }
|
|
- { role: termite, tags: termite }
|
|
- { role: weechat, tags: weechat }
|
|
|
|
tasks:
|
|
- include_role:
|
|
name: vagrant
|
|
when: ansible_user_id == "vagrant"
|
|
tags: vagrant
|
|
|
|
- hosts: all
|
|
tags: laptop
|
|
|
|
roles:
|
|
- { role: packages-laptop, tags: packages-laptop }
|
|
- { role: xbindkeys, tags: xbindkeys }
|