--- - 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: ssh-agent, tags: ssh-agent } - 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 } tasks: - include_role: name: weechat when: ansible_env.username == "vagrant" tags: wallpaper - hosts: all tags: laptop roles: - { role: xbindkeys, tags: xbindkeys }