2017-12-16 22:45:14 +01:00
|
|
|
---
|
|
|
|
- hosts: all
|
2017-12-29 03:14:04 +01:00
|
|
|
tags: server
|
|
|
|
|
|
|
|
tasks:
|
2017-12-23 22:18:11 +01:00
|
|
|
- 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")
|
2017-12-16 22:45:14 +01:00
|
|
|
|
2017-12-19 00:52:21 +01:00
|
|
|
- hosts: all
|
|
|
|
tags: [ 'desktop', 'laptop' ]
|
|
|
|
|
2017-12-29 03:14:04 +01:00
|
|
|
tasks:
|
2017-12-23 22:18:11 +01:00
|
|
|
- name: Limit to Archlinux
|
|
|
|
fail:
|
|
|
|
msg: "{{ ansible_distribution }} is not supported with this tag."
|
|
|
|
when: ansible_distribution != "Archlinux"
|
2017-12-29 03:06:47 +01:00
|
|
|
|
|
|
|
- name: Limit to user account
|
|
|
|
fail:
|
|
|
|
msg: "Don't run as root."
|
2017-12-29 03:08:32 +01:00
|
|
|
when: ansible_user_id == "root"
|
2017-12-23 22:18:11 +01:00
|
|
|
|
2017-12-29 03:14:04 +01:00
|
|
|
- hosts: all
|
|
|
|
tags: [ 'server', 'laptop', 'desktop' ]
|
|
|
|
|
|
|
|
roles:
|
|
|
|
- { role: packages-common, tags: packages-common }
|
|
|
|
- { role: zsh, tags: zsh }
|
|
|
|
- { role: vim, tags: vim }
|
|
|
|
- { role: terminfo, tags: terminfo }
|
|
|
|
- { role: screen, tags: screen }
|
|
|
|
- { role: authorized_keys, tags: authorized_keys }
|
|
|
|
|
|
|
|
- hosts: all
|
|
|
|
tags: [ 'desktop', 'laptop' ]
|
|
|
|
|
2017-12-19 00:52:21 +01:00
|
|
|
roles:
|
2017-12-19 01:08:41 +01:00
|
|
|
- { role: packages-desktop, tags: packages-desktop }
|
2017-12-19 00:52:21 +01:00
|
|
|
- { role: cursor, tags: cursor }
|
2017-12-19 01:43:14 +01:00
|
|
|
- { role: gtk, tags: gtk }
|
2017-12-19 00:52:21 +01:00
|
|
|
- { 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 }
|
2017-12-29 02:34:34 +01:00
|
|
|
- { role: ssh-agent, tags: ssh-agent }
|
2017-12-18 22:23:15 +01:00
|
|
|
|
|
|
|
tasks:
|
|
|
|
- include_role:
|
2017-12-19 18:44:15 +01:00
|
|
|
name: vagrant
|
2017-12-19 16:48:31 +01:00
|
|
|
when: ansible_user_id == "vagrant"
|
2017-12-19 18:44:15 +01:00
|
|
|
tags: vagrant
|
2017-12-19 00:52:21 +01:00
|
|
|
|
|
|
|
- hosts: all
|
|
|
|
tags: laptop
|
|
|
|
|
|
|
|
roles:
|
2017-12-19 16:16:45 +01:00
|
|
|
- { role: packages-laptop, tags: packages-laptop }
|
2017-12-19 00:52:21 +01:00
|
|
|
- { role: xbindkeys, tags: xbindkeys }
|