color role → desktop_environment role
Is this commit without too many change so that Git catches on the rename? Yes, yes it is.
This commit is contained in:
parent
fd580acf2c
commit
fda5b38ddb
|
@ -1,6 +1,8 @@
|
||||||
- name: Default
|
- name: Default
|
||||||
hosts: all
|
hosts: all
|
||||||
roles:
|
roles:
|
||||||
|
- role: facts
|
||||||
|
tags: facts
|
||||||
- role: access
|
- role: access
|
||||||
tags: access
|
tags: access
|
||||||
when: root_access
|
when: root_access
|
||||||
|
@ -11,8 +13,11 @@
|
||||||
when: root_access
|
when: root_access
|
||||||
- role: dotfiles
|
- role: dotfiles
|
||||||
tags: dotfiles
|
tags: dotfiles
|
||||||
- role: mnussbaum.base16-builder-ansible # Required for color
|
- role: mnussbaum.base16-builder-ansible # Required for desktop_environment
|
||||||
tags: color
|
tags:
|
||||||
- role: color
|
- color
|
||||||
tags: color
|
- desktop_environment
|
||||||
|
- role: desktop_environment
|
||||||
|
tags: desktop_environment
|
||||||
|
when: display_server
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,8 @@
|
||||||
- tridactyl
|
- tridactyl
|
||||||
- dunst
|
- dunst
|
||||||
register: base16_schemes
|
register: base16_schemes
|
||||||
|
tags:
|
||||||
|
- color
|
||||||
|
|
||||||
- name: Configure Alacritty
|
- name: Configure Alacritty
|
||||||
template:
|
template:
|
||||||
|
@ -41,6 +43,8 @@
|
||||||
mode: "u+rw,g=r,o=r"
|
mode: "u+rw,g=r,o=r"
|
||||||
notify:
|
notify:
|
||||||
- xrdb-reload
|
- xrdb-reload
|
||||||
|
tags:
|
||||||
|
- color
|
||||||
|
|
||||||
- name: Download base16 theme for qutebrowser
|
- name: Download base16 theme for qutebrowser
|
||||||
copy:
|
copy:
|
||||||
|
@ -49,6 +53,8 @@
|
||||||
mode: "u+rw,g=r,o=r"
|
mode: "u+rw,g=r,o=r"
|
||||||
notify:
|
notify:
|
||||||
- qutebrowser-reload
|
- qutebrowser-reload
|
||||||
|
tags:
|
||||||
|
- color
|
||||||
|
|
||||||
- name: Download base16 theme for Tridactyl
|
- name: Download base16 theme for Tridactyl
|
||||||
copy:
|
copy:
|
||||||
|
@ -57,6 +63,8 @@
|
||||||
dest: "{{ ansible_env.HOME }}/.config/tridactyl/themes/theme.css"
|
dest: "{{ ansible_env.HOME }}/.config/tridactyl/themes/theme.css"
|
||||||
mode: "u+rw,g=r,o=r"
|
mode: "u+rw,g=r,o=r"
|
||||||
when: False # Not currently used
|
when: False # Not currently used
|
||||||
|
tags:
|
||||||
|
- color
|
||||||
|
|
||||||
- name: Configure i3
|
- name: Configure i3
|
||||||
template:
|
template:
|
||||||
|
@ -65,6 +73,8 @@
|
||||||
mode: "u+rw,g=r,o=r"
|
mode: "u+rw,g=r,o=r"
|
||||||
notify:
|
notify:
|
||||||
- i3-reload
|
- i3-reload
|
||||||
|
tags:
|
||||||
|
- color
|
||||||
|
|
||||||
- name: Set base16 theme for rofi
|
- name: Set base16 theme for rofi
|
||||||
copy:
|
copy:
|
||||||
|
@ -74,12 +84,16 @@
|
||||||
with_items:
|
with_items:
|
||||||
- rasi
|
- rasi
|
||||||
- config
|
- config
|
||||||
|
tags:
|
||||||
|
- color
|
||||||
|
|
||||||
- name: Configure Dunst
|
- name: Configure Dunst
|
||||||
template:
|
template:
|
||||||
src: "{{ ansible_env.HOME }}/.config/dunst/dunstrc.j2"
|
src: "{{ ansible_env.HOME }}/.config/dunst/dunstrc.j2"
|
||||||
dest: "{{ ansible_env.HOME }}/.config/dunst/dunstrc"
|
dest: "{{ ansible_env.HOME }}/.config/dunst/dunstrc"
|
||||||
mode: "u+rw,g=r,o=r"
|
mode: "u+rw,g=r,o=r"
|
||||||
|
tags:
|
||||||
|
- color
|
||||||
|
|
||||||
- name: Download base16 theme for fzf
|
- name: Download base16 theme for fzf
|
||||||
copy:
|
copy:
|
||||||
|
@ -88,13 +102,18 @@
|
||||||
mode: "u+rw,g=r,o=r"
|
mode: "u+rw,g=r,o=r"
|
||||||
notify:
|
notify:
|
||||||
- fzf-reload
|
- fzf-reload
|
||||||
|
tags:
|
||||||
|
- color
|
||||||
|
|
||||||
- name: Download base16 theme for Termux
|
- name: Download base16 theme for Termux
|
||||||
copy:
|
copy:
|
||||||
content: "{{ base16_schemes['schemes'][base16_scheme]['termux']['colors']['base16-' + base16_scheme + '.properties'] }}"
|
content: "{{ base16_schemes['schemes'][base16_scheme]['termux']['colors']['base16-' + base16_scheme + '.properties'] }}"
|
||||||
dest: "{{ ansible_env.HOME }}/.termux/colors.properties"
|
dest: "{{ ansible_env.HOME }}/.termux/colors.properties"
|
||||||
mode: "u+rw,g=r,o=r"
|
mode: "u+rw,g=r,o=r"
|
||||||
# TODO Only on Termux
|
tags:
|
||||||
|
- color
|
||||||
|
when: termux
|
||||||
|
# TODO Move to Termux role
|
||||||
|
|
||||||
- name: Download base16 theme for shell
|
- name: Download base16 theme for shell
|
||||||
copy:
|
copy:
|
||||||
|
@ -104,6 +123,8 @@
|
||||||
notify:
|
notify:
|
||||||
- shell-reload
|
- shell-reload
|
||||||
when: False # Not currently used
|
when: False # Not currently used
|
||||||
|
tags:
|
||||||
|
- color
|
||||||
|
|
||||||
- name: Set used base16 theme for vim
|
- name: Set used base16 theme for vim
|
||||||
copy:
|
copy:
|
||||||
|
@ -111,6 +132,8 @@
|
||||||
mode: "u+rw,g=r,o=r"
|
mode: "u+rw,g=r,o=r"
|
||||||
content: "colorscheme base16-{{ base16_scheme }}"
|
content: "colorscheme base16-{{ base16_scheme }}"
|
||||||
when: False # Not currently used
|
when: False # Not currently used
|
||||||
|
tags:
|
||||||
|
- color
|
||||||
|
|
||||||
# TODO bar (might change bar in the future, so...)
|
# TODO bar (might change bar in the future, so...)
|
||||||
# TODO highlight (there IS a template but the colors look different from vim and mostly the same from when there's no config)
|
# TODO highlight (there IS a template but the colors look different from vim and mostly the same from when there's no config)
|
12
config/automatrop/roles/facts/tasks/main.yml
Normal file
12
config/automatrop/roles/facts/tasks/main.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
- name: Set facts
|
||||||
|
set_fact:
|
||||||
|
arch_based: "{{ ansible_distribution == 'Archlinux' }}"
|
||||||
|
arch: "{{ ansible_lsb.id == 'Arch' }}"
|
||||||
|
manjaro: "{{ ansible_lsb.id == 'Manjaro' or ansible_lsb.id == 'Manjaro-ARM' }}"
|
||||||
|
termux: "{{ ansible_distribution == 'OtherLinux' and ansible_python.executable == '/data/data/com.termux/files/usr/bin/python' }}"
|
||||||
|
debian_based: "{{ ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu' }}"
|
||||||
|
debian: "{{ ansible_distribution == 'Debian' }}"
|
||||||
|
ubuntu: "{{ ansible_distribution == 'Ubuntu' }}"
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
# TODO Make this a real Ansible fact maybe?
|
|
@ -1,17 +1,7 @@
|
||||||
- name: Set variables
|
|
||||||
set_fact:
|
|
||||||
arch_based: "{{ ansible_distribution == 'Archlinux' }}"
|
|
||||||
arch: "{{ ansible_lsb.id == 'Arch' }}"
|
|
||||||
manjaro: "{{ ansible_lsb.id == 'Manjaro' or ansible_lsb.id == 'Manjaro-ARM' }}"
|
|
||||||
termux: "{{ ansible_distribution == 'OtherLinux' and ansible_python.executable == '/data/data/com.termux/files/usr/bin/python' }}"
|
|
||||||
debian_based: "{{ ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu' }}"
|
|
||||||
debian: "{{ ansible_distribution == 'Debian' }}"
|
|
||||||
ubuntu: "{{ ansible_distribution == 'Ubuntu' }}"
|
|
||||||
tags: softwarelist
|
|
||||||
|
|
||||||
# TODO Install python if not done
|
# TODO Install python if not done
|
||||||
# Or maybe not, it requires a lot of automation for something that can be done
|
# Or maybe not, it requires a lot of automation for something that can be done
|
||||||
# very quickly manually and is usually uneccessary
|
# very quickly manually and is usually already installed
|
||||||
|
|
||||||
- name: Install python-apt dependency for Termux
|
- name: Install python-apt dependency for Termux
|
||||||
block:
|
block:
|
||||||
|
|
Loading…
Reference in a new issue