Fixes and updates

Added home variable for the home folder, defaults to username.
Edited neofetch config so it runs faster.
Added mukti and ctrl-c.club variables.
This commit is contained in:
Sivert V. Sæther 2022-03-24 15:18:47 +00:00
parent 425ac598a4
commit fc8fc4e9c8
11 changed files with 95 additions and 63 deletions

View File

@ -1,5 +1,6 @@
name: siv name: siv
group: "{{ name }}" group: "{{ name }}"
home: /home/{{ name }}
shell: /bin/zsh shell: /bin/zsh
user_groups: [wheel,sudo,adm,kvm,users,libvirt,docker] user_groups: [wheel,sudo,adm,kvm,users,libvirt,docker]
zsh_opt_config: true zsh_opt_config: true
@ -11,9 +12,9 @@ pubkeys: [
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDqXa9fIVrQTGV4PMTn7ZyyeTLDVC+H4kV6zJzWBGGZf6DSoumJtbTaD6Ob3Czsf/NZ35iCPy2yrar3/Z7ccDrcfpxlNvj9l3NphEdXIebyQ8VmMWBy4pDPjE1erIEaL+J5RfjidB7xauticUIuNj0vtuvum/f09vGsohys+/llU7T+M42AeCTT5omw0DD8DPIUGxFwsgg0RxtD5ol1i3v0zVqwlbc7gnHws9/JCJZrhdHZWWkqvVQLCbRRCq4ZvRBcMdwJsBOeJpM9tkeJ7peZjAnPh7EIPkWh79+S65m6bsBe9N4lX5Qf2jxMSzgGeHhfJmd5O7UVqxH1a4M10e+CZOsWdTbMFEn+pcA04gehV9mL5gazZTMSjVFRzd/NUWi0Z6kecXW0HvxWzvKs+iZgaqL7qsDQUb23nMyvtiRO7JeTfdlo/dpb3Uz12VfwcHWAw1DpyJk3Sd1xV4sLke34F67e141ed72Piig6UuX2/aXm5Due781zIS8zBKBl4vXORbGjLLBo72RctB3xU9nJmkttdeSSF/yRbY7H3+bsvno/VUSAhnYWlGNrZBc+tTtqjYEQ3k/G8I8nwO4e1GDfo6w5G9dZQQ4YyV4v41NRp0TrtuGBpvGf9anMWUcp63f+fXMOZAnSVg42oZZUYWSPQTnoY1E5I3A6K4wrqEHt4w== siv@craptop, ssh-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kfNJrsyNDLoJXimj8UryNpn3ejV9DkreL985uAmkLPY11bkD6vWgdZgXA3aWpLQm05crOu4GEn1bGhbnIORm4mjxlANJB0QC9FliCAVkLk4OY7UGnx4mgqMyYjb2LCdgGKVVto97UAisJxWikLiM5nCNrCaGBe05d2nVxPXVKwALI3E2AeIYSmjE4N3mBgUIxWuGS6KoOZsnoSYS3+blQV0W/POuFw4NhlWgZUi8GAaGPfWj8pM/u9dH8FKxhK/PabVKtltLkn4ntgewaeNl18n1NFkQtcDD7Kkg/ZIQ9SiNchK0SxR0/Pgwo/A5GacF+nwTgxGwDJbQ0OPaVlbQd/cCaXl1AX9s7R5Xd8D35KFHTJ1IVnZohDGVQvQ== mob]
packages: [neofetch,htop,git,zsh,bat] packages: [neofetch,htop,git,zsh,lsd,bat]
package_manager: null package_manager: null
# extra_packages: [] extra_packages: []
update: true update: true
setup: [zsh,extra,system] # ,bash,emacs setup: [zsh,extra,system] # ,bash,emacs
revert: false revert: false

19
group_vars/mukti.yml Normal file
View File

@ -0,0 +1,19 @@
name: 1337h4ckz0r5
group: "{{ name }}"
home: /home/coder
shell: /bin/zsh
user_groups: [sudo,docker]
zsh_opt_config: false
bash_prompt: '[\e[0;34m\u\e[0;32m@\e[1;31m\h\e[0m] \e[0;35m\w \e[0m\$'
zsh_prompt: "{{ '%F{red}% %n%F{green}% @%F{blue}% %m %F{#bb33bb}% %1~%f >' }}"
pubkeys: [
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC1O7dXSrkDZ0l2kQMDnUPcALEYrq9l+fCKANb4sKZebRr+CkvO0Yat6f/O1a4OJWKeIpOMNIG60aiQB4Npn1ACosQ5Jgw1GypEr6QWDKdWqTEQ4qQaJk2sAKbUpEHTvtwlRTZy5zxC0TrRSjXcNmPR5O4GGMPLAdWFmD9iIRA+tjGvB6U4NY8KafxzBmje95oVP8erayEZT90IgljLisg29uAofAfAhjP/KV/z1ppmwrL7Et6N2ZcOfFl+KOcefzjt0bdkV0gFXq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tcDD7Kkg/ZIQ9SiNchK0SxR0/Pgwo/A5GacF+nwTgxGwDJbQ0OPaVlbQd/cCaXl1AX9s7R5Xd8D35KFHTJ1IVnZohDGVQvQ== mob]
packages: [neofetch,htop,git,zsh,bat]
package_manager: apt
#extra_packages: [emacs]
update: true
setup: [zsh,bash,user,extra,system] #,emacs

15
host_vars/ctrl-c.club.yml Normal file
View File

@ -0,0 +1,15 @@
zsh_opt_config: false
zsh_prompt: "{{ '%F{blue}% %n%F{green}% @%F{red}% %m %F{#bb33bb}% %1~%f >' }}"
pubkeys: [
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDJjfmCya6+rbVz1guQN1LBJoJ7KKAvVf+KQn48980QVYvP3e9mWp3vidTHZOEK1TMiEL7fkPehfjUWna1D/G4i70xN7GhDScd2T8F1QFJzhr+x1zIoYXTCuHXxKvZKTbTroTbQwsvtXbz30+gzRErMamOIVrzUfXax1YaG0d+2HmryeXSL1rq/5v/H9K1j5Ou+77QOZ9cdaLcynOU2+1qhtAjyAm7RA9yoySqmgp1/CzrixQ9x4OWJaGFbL2ooyXY2lnz23rttEo1ziwJpX7LU1oNHOqBxRIVBepakN5Oy3PW1lOLHCV0ipgAFs03ScPgwZ1C2Y5b1svTKl0fH5XF8huSKFaTg9jiJ89rniWq/u8Hebb9U37/VnLKbTLiPZLdES3b1FZHuYFDes+VQHcPXjzdSQ5J+bGZ8EuBLRa9LXd37hCqXEWgMxZ3BvqUW5VF6G5nmHQdxOdf3gb/FNdcKXjK6nRDzx7DNeV81wp/Lo9KI1hu5g6BdNnI5Dy5l4d3CBDre7QP09fUmKve+AK1m9DdEIRxvtzo+X0Hi32+qhWyQUQhzEm+DG+brOuIpDAH9CoNts2cUjTqqzlW7eQ51N6xUe4PfMv2yoL0DvlRK6hBaAz50lHWD3ubXbdNl3Pd8msCOAg9vhIN7Zgfvvs2Ic19Q/YoPMqylWpIowxEfbw== 1337h4ckz0r5@mukti,
ssh-rsa AAAAB3NzaC1yc2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XdnB4cXgkfNJrsyNDLoJXimj8UryNpn3ejV9DkreL985uAmkLPY11bkD6vWgdZgXA3aWpLQm05crOu4GEn1bGhbnIORm4mjxlANJB0QC9FliCAVkLk4OY7UGnx4mgqMyYjb2LCdgGKVVto97UAisJxWikLiM5nCNrCaGBe05d2nVxPXVKwALI3E2AeIYSmjE4N3mBgUIxWuGS6KoOZsnoSYS3+blQV0W/POuFw4NhlWgZUi8GAaGPfWj8pM/u9dH8FKxhK/PabVKtltLkn4ntgewaeNl18n1NFkQtcDD7Kkg/ZIQ9SiNchK0SxR0/Pgwo/A5GacF+nwTgxGwDJbQ0OPaVlbQd/cCaXl1AX9s7R5Xd8D35KFHTJ1IVnZohDGVQvQ== mob]
packages: [neofetch,htop,git,zsh,lsd,bat]
package_manager: null
# extra_packages: []
update: true
setup: [zsh,extra,system] # ,bash,emacs
revert: false

View File

@ -4,12 +4,8 @@
# extra_packages: [openssh,emacs,doas,lsd] # extra_packages: [openssh,emacs,doas,lsd]
user_groups: [adm,users] user_groups: [adm,users]
setup: [bash,zsh,system,extra] # ,emacs setup: [bash,zsh,system,extra] # ,emacs
# zsh_opt_config: false # zsh_opt_config: true
package_manager: apk package_manager: apk
# user_groups: [sysadmins]
pubkeys: [] pubkeys: []
extra_packages: [] extra_packages: [doas,lsd]
packages: [] # update: false
update: false
# name: sivert
# group: "{{ user_groups[0] }}"

View File

@ -2,35 +2,36 @@ print_info() {
info title info title
info underline info underline
info "OS" distro info "OS" distro &
info "Host" model info "Host" model &
info "Kernel" kernel info "Kernel" kernel &
info "Uptime" uptime info "Uptime" uptime &
info "Packages" packages info "Packages" packages &
info "Shell" shell info "Shell" shell &
# info "Resolution" resolution # info "Resolution" resolution &
# info "DE" de # info "DE" de &
# info "WM" wm # info "WM" wm &
# info "WM Theme" wm_theme # info "WM Theme" wm_theme &
# info "Theme" theme # info "Theme" theme &
info "Icons" icons info "Icons" icons &
info "Terminal" term info "Terminal" term &
info "Terminal Font" term_font info "Terminal Font" term_font &
info "CPU" cpu info "CPU" cpu &
info "GPU" gpu info "GPU" gpu &
info "Memory" memory info "Memory" memory &
# info "GPU Driver" gpu_driver # Linux/macOS only # info "GPU Driver" gpu_driver & # Linux/macOS only
# info "CPU Usage" cpu_usage # info "CPU Usage" cpu_usage &
info "Disk" disk info "Disk" disk &
# info "Battery" battery # info "Battery" battery &
info "Font" font info "Font" font &
# info "Song" song # info "Song" song &
# [[ "$player" ]] && prin "Music Player" "$player" # [[ "$player" ]] && prin "Music Player" "$player" &
info "Local IP" local_ip info "Local IP" local_ip &
# info "Public IP" public_ip # info "Public IP" public_ip &
# info "Users" users # info "Users" users &
# info "Locale" locale # This only works on glibc systems. # info "Locale" locale & # This only works on glibc systems.
wait
info cols info cols
} }

View File

@ -2,7 +2,7 @@
when: update when: update
block: block:
- name: Install packages (pacman) - name: Install packages (pacman)
when: "'pacman' in group_names" when: package_manager == 'pacman' or 'pacman' in group_names
tags: pacman tags: pacman
block: block:
- name: Install the good stuff (pacman) - name: Install the good stuff (pacman)
@ -19,7 +19,7 @@
- "{{ packages }}" - "{{ packages }}"
- name: Install packages (apk) - name: Install packages (apk)
when: "'apk' in group_names or 'alpine' in group_names" when: package_manager == 'apk' or 'apk' in group_names or 'alpine' in group_names
tags: apk tags: apk
block: block:
- name: Install the good stuff (apk) - name: Install the good stuff (apk)
@ -36,7 +36,7 @@
- "{{ packages }}" - "{{ packages }}"
- name: Install packages (apt) - name: Install packages (apt)
when: "'apt' in group_names" when: package_manager == 'apt' or 'apt' in group_names
tags: apt tags: apt
block: block:
- name: Install the good stuff (apt) - name: Install the good stuff (apt)
@ -60,8 +60,8 @@
tags: system tags: system
- name: Configure user configs - name: Configure user configs
when: "'user' in setup" when: "'user' in setup and ('neofetch' in packages or 'neofetch' in extra_packages)"
block: block:
- name: Add ~/.config/neofetch/ - name: Add ~/.config/neofetch/
copy: src=neofetch dest=/home/{{ name }}/.config/neofetch owner={{ name }} group={{ name }} mode=0755 copy: src=neofetch dest={{ home }}/.config owner={{ name }} group={{ group }} mode=0755
tags: config tags: config

View File

@ -1,14 +1,14 @@
- name: Add .aliases - name: Add .aliases
copy: src=aliases.sh dest=/home/{{ name }}/.aliases owner={{ name }} group={{ group }} mode=0644 copy: src=aliases.sh dest={{ home }}/.aliases owner={{ name }} group={{ group }} mode=0644
- name: Add .bat.conf - name: Add .bat.conf
copy: src=bat.conf dest=/home/{{ name }}/.bat.conf owner={{ name }} group={{ group }} mode=0644 copy: src=bat.conf dest={{ home }}/.bat.conf owner={{ name }} group={{ group }} mode=0644
when: "'bat' in packages or 'bat' in extra_packages" when: "'bat' in packages or 'bat' in extra_packages"
- name: Install zsh syntax highlighting (~/.zshrc.d folder) - name: Install zsh syntax highlighting (~/.zshrc.d folder)
when: not zsh_opt_config when: not zsh_opt_config
git: git:
repo: https://github.com/zsh-users/zsh-syntax-highlighting.git repo: https://github.com/zsh-users/zsh-syntax-highlighting.git
dest: /home/{{ name }}/.zshrc.d/zsh-syntax-highlighting dest: "{{ home }}/.zshrc.d/zsh-syntax-highlighting"
single_branch: yes single_branch: yes
version: master version: master
- name: Install zsh syntax highlighting (/opt/zsh folder) - name: Install zsh syntax highlighting (/opt/zsh folder)
@ -21,6 +21,6 @@
become: true become: true
- name: Add ~/.zshrc.d -> /opt/zsh symbolic link - name: Add ~/.zshrc.d -> /opt/zsh symbolic link
when: zsh_opt_config when: zsh_opt_config
file: state=link dest=/home/{{ name }}/.zshrc.d src=/opt/zsh owner={{ name }} group={{ group }} mode=0755 file: state=link dest={{ home }}/.zshrc.d src=/opt/zsh owner={{ name }} group={{ group }} mode=0755
- name: Set owner ship of zsh syntax highlighting files - name: Set owner ship of zsh syntax highlighting files
file: state=directory recurse=yes dest=/home/{{ name }}/.zshrc.d owner={{ name }} group={{ group }} file: state=directory recurse=yes dest={{ home }}/.zshrc.d owner={{ name }} group={{ group }}

View File

@ -3,16 +3,16 @@
tags: [user,zsh] tags: [user,zsh]
block: block:
- name: Add .zshrc - name: Add .zshrc
template: src=zshrc.zsh.j2 dest=/home/{{ name }}/.zshrc owner={{ name }} group={{ group }} mode=0644 template: src=zshrc.zsh.j2 dest={{ home }}/.zshrc owner={{ name }} group={{ group }} mode=0644
- name: Add zsh zstyles config - name: Add zsh zstyles config
copy: src=zstyles.zsh dest=/home/{{ name }}/.zstyles owner={{ name }} group={{ group }} mode=0644 copy: src=zstyles.zsh dest={{ home }}/.zstyles owner={{ name }} group={{ group }} mode=0644
- name: Setup user bash config - name: Setup user bash config
when: "'bash' in setup" when: "'bash' in setup"
tags: [user,bash] tags: [user,bash]
block: block:
- name: Add .bashrc - name: Add .bashrc
template: src=bashrc.sh.j2 dest=/home/{{ name }}/.bashrc owner={{ name }} group={{ group }} mode=0644 template: src=bashrc.sh.j2 dest={{ home }}/.bashrc owner={{ name }} group={{ group }} mode=0644
- name: Setup user extra config - name: Setup user extra config
when: "'extra' in setup" when: "'extra' in setup"
@ -22,7 +22,7 @@
- name: Add .env file - name: Add .env file
when: not revert when: not revert
copy: src=env.sh dest=/home/{{ name }}/.env owner={{ name }} group={{ group }} mode=0644 copy: src=env.sh dest={{ home }}/.env owner={{ name }} group={{ group }} mode=0644
- name: Revert ansible shell setup - name: Revert ansible shell setup
when: revert when: revert

View File

@ -2,14 +2,14 @@
tags: [zsh] tags: [zsh]
block: block:
- name: Remove .zshrc - name: Remove .zshrc
file: state=absent path=/home/{{ name }}/.zshrc file: state=absent path={{ home }}/.zshrc
- name: Remove zsh zstyles config - name: Remove zsh zstyles config
file: state=absent path=/home/{{ name }}/.zstyles file: state=absent path={{ home }}/.zstyles
- name: Remove .zshrc.d folder/link - name: Remove .zshrc.d folder/link
file: state=absent path=/home/{{ name }}/.zshrc.d file: state=absent path={{ home }}/.zshrc.d
- name: Remove zsh syntax highlighting - name: Remove zsh syntax highlighting
file: state=absent path=/home/{{ name }}/.zshrc.d/zsh-syntax-highlighting file: state=absent path={{ home }}/.zshrc.d/zsh-syntax-highlighting
when: not zsh_opt_config when: not zsh_opt_config
- name: Remove zsh syntax highlighting (/opt/zsh) - name: Remove zsh syntax highlighting (/opt/zsh)
file: state=absent path=/opt/zsh/zsh-syntax-highlighting file: state=absent path=/opt/zsh/zsh-syntax-highlighting
@ -20,8 +20,8 @@
tags: [extra] tags: [extra]
block: block:
- name: Remove .aliases - name: Remove .aliases
file: state=absent path=/home/{{ name }}/.aliases file: state=absent path={{ home }}/.aliases
- name: Remove .bat.conf - name: Remove .bat.conf
file: state=absent path=/home/{{ name }}/.bat.conf file: state=absent path={{ home }}/.bat.conf
- name: Remove .env file - name: Remove .env file
file: state=absent path=/home/{{ name }}/.env file: state=absent path={{ home }}/.env

View File

@ -3,19 +3,19 @@
tags: [doom,emacs] tags: [doom,emacs]
block: block:
- name: Remove old emacs config - name: Remove old emacs config
file: state=absent path=/home/{{ name }}/.emacs.d file: state=absent path={{ home }}/.emacs.d
- name: Git clone doom emacs - name: Git clone doom emacs
git: git:
repo: https://github.com/hlissner/doom-emacs repo: https://github.com/hlissner/doom-emacs
dest: /home/{{ name }}/.emacs.d dest: "{{ home }}/.emacs.d"
accept_newhostkey: yes accept_newhostkey: yes
single_branch: yes single_branch: yes
version: master version: master
depth: 1 depth: 1
- name: Install doom emacs - name: Install doom emacs
shell: | shell: |
chown -R {{ name }} /home/{{ name }}/.emacs.d chown -R {{ name }} {{ home }}/.emacs.d
echo "y\ny"|su {{ name }} /home/{{ name }}/.emacs.d/bin/doom install echo "y\ny"|su {{ name }} {{ home }}/.emacs.d/bin/doom install
#* ^ Above we answer terminal prompts #* ^ Above we answer terminal prompts
# - name: Add doom emacs config # - name: Add doom emacs config
# - name: Run doom sync # - name: Run doom sync

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
user="siv" user="siv"
function playbook() { function playbook() {