Ansible god!
Big rework! Control stuffs with variables! We still should do some movei'n around of roles before extending features.
This commit is contained in:
@@ -1 +1,2 @@
|
||||
permit nopass siv as root
|
||||
permit persist :adm
|
||||
permit persist siv
|
||||
|
104
roles/common/files/neofetch/config.conf
Normal file
104
roles/common/files/neofetch/config.conf
Normal file
@@ -0,0 +1,104 @@
|
||||
print_info() {
|
||||
info title
|
||||
info underline
|
||||
|
||||
info "OS" distro
|
||||
info "Host" model
|
||||
info "Kernel" kernel
|
||||
info "Uptime" uptime
|
||||
info "Packages" packages
|
||||
info "Shell" shell
|
||||
; info "Resolution" resolution
|
||||
; info "DE" de
|
||||
; info "WM" wm
|
||||
; info "WM Theme" wm_theme
|
||||
; info "Theme" theme
|
||||
info "Icons" icons
|
||||
info "Terminal" term
|
||||
info "Terminal Font" term_font
|
||||
info "CPU" cpu
|
||||
info "GPU" gpu
|
||||
info "Memory" memory
|
||||
|
||||
; info "GPU Driver" gpu_driver # Linux/macOS only
|
||||
; info "CPU Usage" cpu_usage
|
||||
info "Disk" disk
|
||||
; info "Battery" battery
|
||||
info "Font" font
|
||||
; info "Song" song
|
||||
; [[ "$player" ]] && prin "Music Player" "$player"
|
||||
info "Local IP" local_ip
|
||||
; info "Public IP" public_ip
|
||||
; info "Users" users
|
||||
; info "Locale" locale # This only works on glibc systems.
|
||||
|
||||
info cols
|
||||
}
|
||||
|
||||
title_fqdn="off"
|
||||
kernel_shorthand="off"
|
||||
distro_shorthand="off"
|
||||
os_arch="off"
|
||||
uptime_shorthand="on"
|
||||
memory_percent="on"
|
||||
memory_unit="gib"
|
||||
package_managers="on"
|
||||
shell_path="on"
|
||||
shell_version="on"
|
||||
speed_type="bios_limit"
|
||||
speed_shorthand="on"
|
||||
cpu_brand="on"
|
||||
cpu_speed="on"
|
||||
cpu_cores="logical"
|
||||
cpu_temp="C"
|
||||
gpu_brand="on"
|
||||
gpu_type="all"
|
||||
refresh_rate="on"
|
||||
gtk_shorthand="off"
|
||||
gtk2="on"
|
||||
gtk3="on"
|
||||
public_ip_host="https://myip.wtf/text"
|
||||
public_ip_timeout=2
|
||||
de_version="on"
|
||||
disk_show=('/')
|
||||
disk_subtitle="mount"
|
||||
disk_percent="on"
|
||||
music_player="auto"
|
||||
song_format="%artist% - %album% - %title%"
|
||||
song_shorthand="off"
|
||||
mpc_args=()
|
||||
colors=(distro)
|
||||
bold="on"
|
||||
underline_enabled="on"
|
||||
underline_char="-"
|
||||
separator=":"
|
||||
block_range=(0 15)
|
||||
color_blocks="on"
|
||||
block_width=2
|
||||
block_height=1
|
||||
col_offset="auto"
|
||||
bar_char_elapsed="="
|
||||
bar_char_total="-"
|
||||
bar_border="on"
|
||||
bar_length=15
|
||||
bar_color_elapsed="distro"
|
||||
bar_color_total="distro"
|
||||
cpu_display="infobar"
|
||||
memory_display="infobar"
|
||||
battery_display="infobar"
|
||||
disk_display="infobar"
|
||||
image_backend="ascii"
|
||||
image_source="ascii"
|
||||
ascii_distro="auto"
|
||||
ascii_colors=(distro)
|
||||
ascii_bold="on"
|
||||
image_loop="off"
|
||||
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
|
||||
crop_mode="normal"
|
||||
crop_offset="center"
|
||||
image_size="auto"
|
||||
gap=3
|
||||
yoffset=1
|
||||
xoffset=1
|
||||
background_color=
|
||||
stdout="off"
|
@@ -1,36 +1,67 @@
|
||||
- name: Install and configure packages
|
||||
- name: Install packages
|
||||
when: update
|
||||
block:
|
||||
- name: Install the good stuff (pacman)
|
||||
pacman: name={{ packages }} state=latest
|
||||
- name: Install packages (pacman)
|
||||
when: "'pacman' in group_names"
|
||||
tags: pacman
|
||||
- name: Install the good stuff (apk)
|
||||
apk: name={{ packages }} state=latest
|
||||
block:
|
||||
- name: Install the good stuff (pacman)
|
||||
pacman: name={{ item }} state=latest
|
||||
ignore_errors: yes
|
||||
with_items:
|
||||
- "{{ extra_packages }}"
|
||||
- "{{ packages }}"
|
||||
rescue:
|
||||
- name: Uninstall the good stuff (pacman)
|
||||
pacman: name={{ item }} state=absent
|
||||
with_items:
|
||||
- "{{ extra_packages }}"
|
||||
- "{{ packages }}"
|
||||
|
||||
- name: Install packages (apk)
|
||||
when: "'apk' in group_names or 'alpine' in group_names"
|
||||
tags: apk
|
||||
- name: Install the good stuff (apt)
|
||||
apt: package={{ packages }} state=latest
|
||||
block:
|
||||
- name: Install the good stuff (apk)
|
||||
apk: name={{ item }} state=latest
|
||||
ignore_errors: yes
|
||||
with_items:
|
||||
- "{{ extra_packages }}"
|
||||
- "{{ packages }}"
|
||||
rescue:
|
||||
- name: Uninstall the good stuff (apk)
|
||||
apk: name={{ item }} state=absent
|
||||
with_items:
|
||||
- "{{ extra_packages }}"
|
||||
- "{{ packages }}"
|
||||
|
||||
- name: Install packages (apt)
|
||||
when: "'apt' in group_names"
|
||||
tags: apt
|
||||
block:
|
||||
- name: Install the good stuff (apt)
|
||||
apt: package={{ item }} state=latest
|
||||
ignore_errors: yes
|
||||
with_items:
|
||||
- "{{ extra_packages }}"
|
||||
- "{{ packages }}"
|
||||
rescue:
|
||||
- name: Uninstall the good stuff (apt)
|
||||
apt: package={{ item }} state=absent
|
||||
with_items:
|
||||
- "{{ extra_packages }}"
|
||||
- "{{ packages }}"
|
||||
|
||||
- name: Configure system packages
|
||||
when: "'system' in setup"
|
||||
block:
|
||||
- name: Add /etc/doas.conf
|
||||
copy: src=doas.conf dest=/etc/doas.conf owner=root group=root mode=0644
|
||||
tags: system
|
||||
|
||||
rescue:
|
||||
- name: Uninstall the good stuff (pacman)
|
||||
pacman: name={{ packages }} state=absent
|
||||
when: "'pacman' in group_names"
|
||||
tags: pacman
|
||||
- name: Uninstall the good stuff (apk)
|
||||
apk: name={{ packages }} state=absent
|
||||
when: "'apk' in group_names or 'alpine' in group_names"
|
||||
tags: apk
|
||||
- name: Uninstall the good stuff (apt)
|
||||
apt: package={{ packages }} state=absent
|
||||
when: "'apt' in group_names"
|
||||
tags: apt
|
||||
|
||||
- name: Remove /etc/doas.conf
|
||||
file: state=absent path=/etc/doas.conf
|
||||
tags: system
|
||||
- name: Configure user configs
|
||||
when: "'user' in setup"
|
||||
block:
|
||||
- name: Add ~/.config/neofetch/
|
||||
copy: src=neofetch dest=/home/{{ name }}/.config/neofetch owner={{ name }} group={{ name }} mode=0755
|
||||
tags: config
|
||||
|
Reference in New Issue
Block a user