forked from eoli3n/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.yml
More file actions
66 lines (55 loc) · 1.74 KB
/
install.yml
File metadata and controls
66 lines (55 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
- hosts: all
tags: server
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")
- hosts: all
tags: [ 'desktop', 'laptop' ]
tasks:
- name: Limit to Archlinux
fail:
msg: "{{ ansible_distribution }} is not supported with this tag."
when: ansible_distribution != "Archlinux"
- name: Limit to user account
fail:
msg: "Don't run as root."
when: ansible_user_id == "root"
- 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' ]
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 }
- { role: ssh-agent, tags: ssh-agent }
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 }