2017-12-16 22:45:14 +01:00
|
|
|
---
|
2019-12-01 16:29:03 +01:00
|
|
|
- hosts: all
|
|
|
|
roles:
|
|
|
|
- { role: authorized_keys, tags: init_ssh }
|
|
|
|
|
2018-01-04 20:59:34 +01:00
|
|
|
- hosts: server
|
|
|
|
tags: limit
|
2017-12-29 03:14:04 +01:00
|
|
|
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
|
|
|
|
2018-01-04 20:59:34 +01:00
|
|
|
- hosts: desktop:laptop
|
|
|
|
tags: limit
|
2017-12-29 03:14:04 +01:00
|
|
|
tasks:
|
2020-01-01 00:10:25 +01:00
|
|
|
- name: Limit to Archlinux and NixOS
|
2017-12-23 22:18:11 +01:00
|
|
|
fail:
|
|
|
|
msg: "{{ ansible_distribution }} is not supported with this tag."
|
2020-01-01 00:10:25 +01:00
|
|
|
when: (ansible_distribution != "Archlinux") and
|
|
|
|
(ansible_distribution != "NixOS")
|
2017-12-29 03:06:47 +01:00
|
|
|
|
2018-01-04 20:59:34 +01:00
|
|
|
- name: Limit to user accounts
|
2017-12-29 03:06:47 +01:00
|
|
|
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
|
|
|
|
2018-01-04 20:59:34 +01:00
|
|
|
- hosts: server:desktop:laptop
|
2017-12-29 03:14:04 +01:00
|
|
|
roles:
|
2019-12-01 16:29:03 +01:00
|
|
|
- { role: fish, tags: fish }
|
|
|
|
- { role: neovim, tags: neovim }
|
2020-04-23 14:29:03 +02:00
|
|
|
#- { role: terminfo, tags: terminfo }
|
2017-12-29 03:14:04 +01:00
|
|
|
- { role: screen, tags: screen }
|
2020-01-02 18:20:31 +01:00
|
|
|
- { role: git, tags: git }
|
2020-01-05 11:14:21 +01:00
|
|
|
- { role: userbin, tags: userbin }
|
2017-12-29 03:14:04 +01:00
|
|
|
|
2018-01-04 20:59:34 +01:00
|
|
|
- hosts: desktop:laptop
|
2017-12-19 00:52:21 +01:00
|
|
|
roles:
|
2020-01-03 01:53:52 +01:00
|
|
|
- role: ssh-agent
|
|
|
|
tags: ssh-agent
|
|
|
|
when: ansible_distribution == "Archlinux"
|
2017-12-19 01:43:14 +01:00
|
|
|
- { role: gtk, tags: gtk }
|
2019-12-11 23:59:36 +01:00
|
|
|
- { role: sway, tags: sway }
|
2020-01-02 11:05:10 +01:00
|
|
|
- { role: waybar, tags: waybar }
|
2019-12-01 16:29:03 +01:00
|
|
|
- { role: variety, tags: variety }
|
2017-12-19 00:52:21 +01:00
|
|
|
- { role: rofi, tags: rofi }
|
2020-04-23 14:29:03 +02:00
|
|
|
#- { role: termite, tags: termite }
|
|
|
|
- { role: alacritty, tags: alacritty }
|
2020-01-03 01:48:38 +01:00
|
|
|
- { role: openvpn, tags: openvpn }
|
2020-01-05 10:58:42 +01:00
|
|
|
- { role: borgbackup, tags: borgbackup }
|
2020-04-23 14:29:03 +02:00
|
|
|
- { role: weechat, tags: weechat }
|
|
|
|
#- { role: tiny, tags: tiny }
|
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
|
|
|
|
2018-01-04 20:59:34 +01:00
|
|
|
- hosts: laptop
|
2017-12-19 00:52:21 +01:00
|
|
|
roles:
|
|
|
|
- { role: xbindkeys, tags: xbindkeys }
|