finish converting ansible provision to void

This commit is contained in:
Tyler Starr 2022-12-23 22:50:46 -08:00
parent 9dee18df08
commit 7626d8e4cb
8 changed files with 39 additions and 79 deletions

View File

@ -42,6 +42,9 @@ else:
#crash #crash
0/0 0/0
os.system("autorandr --save current --force")
# ask user to define primary and secondary monitor # ask user to define primary and secondary monitor
i3_dict["disp_pri"] = left if left_primary == 'y' else right i3_dict["disp_pri"] = left if left_primary == 'y' else right
i3_dict["disp_sec"] = left if left_primary == 'n' else right i3_dict["disp_sec"] = left if left_primary == 'n' else right

View File

@ -84,6 +84,10 @@ export PATH
export PATH=/home/tstarr/.nimble/bin:$PATH export PATH=/home/tstarr/.nimble/bin:$PATH
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# You may need to manually set your language environment # You may need to manually set your language environment
# export LANG=en_US.UTF-8 # export LANG=en_US.UTF-8
@ -119,3 +123,6 @@ alias te='trash-empty'
alias tl='trash-list' alias tl='trash-list'
alias tre='trash-restore' alias tre='trash-restore'
alias trm='trash-rm' alias trm='trash-rm'
# bitwarden-cli
alias bu='export BW_SESSION=$( bw unlock --raw )' # unlock and export bitwarden session

View File

@ -1,44 +1,13 @@
- name: Ansible playbook to setup void linux
- name: Ansible playbook to setup my local machine
hosts: all hosts: all
vars_files: vars_files:
- vars/main.yml - vars/main.yml
#vars_prompt:
# - name: github_token
# prompt: "What is your GitHub Token?"
# default: "{{ lookup('env','GITHUB_TOKEN') }}"
# private: yes
#pre_tasks:
# - name: Ensure setup directory exists
# file:
# path: "{{ setup_dir }}"
# state: directory
# mode: 0755
# tags: [always]
#post_tasks:
# - name: Remove setup directory
# file:
# path: "{{ setup_dir }}"
# state: absent
# become: true
# tags: [always]
#handlers:
# - name: restart docker
# service:
# name: docker
# state: restarted
# become: true
tasks: tasks:
# This import MUST be first
- import_tasks: tasks/system/_main.yml - import_tasks: tasks/system/_main.yml
- import_tasks: tasks/terminal/_main.yml - import_tasks: tasks/terminal/_main.yml
#- import_tasks: tasks/development/_main.yml - import_tasks: tasks/development/_main.yml
- import_tasks: tasks/desktop/_main.yml - import_tasks: tasks/desktop/_main.yml
#- import_tasks: tasks/gaming/_main.yml - import_tasks: tasks/gaming/_main.yml

View File

@ -21,11 +21,6 @@
- pavucontrol - pavucontrol
- polybar - polybar
- rofi - rofi
- libdrm-32bit
- libgcc-32bit
- libstdc++-32bit
- mesa-dri-32bit
- steam
- pcmanfm - pcmanfm
- xclip - xclip
- autorandr - autorandr
@ -51,17 +46,6 @@
remote_src: true remote_src: true
mode: 0755 mode: 0755
#ansible
#btrbk
#chezmoi
#elogind
#fd
#git
#pipewire
#python3
#ripgrep
#rsync
#unzip
#void-repo-multilib #void-repo-multilib
#void-repo-multilib-nonfree #void-repo-multilib-nonfree
#void-repo-nonfree #void-repo-nonfree

View File

@ -1,12 +1,3 @@
- name: Add vscodium repo
tags: ["once"]
yum_repository:
name: vscodium
description: Free/Libre Open Source Software Binaries of VS Code
baseurl: https://download.vscodium.com/rpms/
gpgkey: https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg
become: true
- name: Setup nvm - name: Setup nvm
tags: ["once"] tags: ["once"]
shell: > shell: >
@ -18,10 +9,3 @@
git: git:
repo: https://github.com/wbthomason/packer.nvim.git repo: https://github.com/wbthomason/packer.nvim.git
dest: /home/{{ user }}/.local/share/nvim/site/pack/packer/start/packer.nvim dest: /home/{{ user }}/.local/share/nvim/site/pack/packer/start/packer.nvim
- name: Enable lazygit copr repo
tags: ["once"]
community.general.copr:
name: atim/lazygit
state: enabled
become: true

View File

@ -1,14 +1,10 @@
- name: Install development dnf packages - name: Install development dnf packages
dnf: xbps:
name: name:
- codium # Free/Libre Open Source Software Binaries of VS Code - python3
- python3.9 # Version 3.9 of the Python interpreter
- python3-pip # A tool for installing and managing Python3 packages - python3-pip # A tool for installing and managing Python3 packages
- nodejs # JavaScript runtime
- npm # Node.js Package Manager
- gcc-c++
- ripgrep - ripgrep
- fd-find - fd
- lazygit - lazygit
state: present state: present
become: true become: true
@ -17,3 +13,10 @@
ansible.builtin.pip: ansible.builtin.pip:
name: name:
- ansible-lint # Command-line tool for linting playbooks, roles and collections - ansible-lint # Command-line tool for linting playbooks, roles and collections
- name: Install development flatpaks
flatpak:
name:
- com.vscodium.codium # Free/Libre Open Source Software Binaries of VS Code
state: present
become: true

View File

@ -1,6 +1,10 @@
- name: Install gaming dnf packages - name: Install gaming dnf packages
dnf: xbps:
name: name:
- libdrm-32bit
- libgcc-32bit
- libstdc++-32bit
- mesa-dri-32bit
- steam # Launcher for the Steam software distribution service - steam # Launcher for the Steam software distribution service
- lutris # Video game preservation platform - lutris # Video game preservation platform
- gamemode # Optimize system performance for games on demand - gamemode # Optimize system performance for games on demand

View File

@ -3,14 +3,20 @@
name: name:
- git # Fast Version Control System - git # Fast Version Control System
- git-lfs # Git extension for versioning large files - git-lfs # Git extension for versioning large files
#- python-psutil # Cross-platform library for retrieving information on running processes
- syncthing # Continuous File Synchronization - syncthing # Continuous File Synchronization
- flatpak # Application deployment framework for desktop apps - flatpak # Application deployment framework for desktop apps
#- pipewire-codec-aptx # PipeWire Bluetooth aptX codec plugin - wireguard # Fast, modern, secure vpn tunnel
#- wireguard # Fast, modern, secure vpn tunnel - wireguard-tools # Tool for wireguard
#- wireguard-tools # Tool for wireguard - cronie
#- anacron - pipewire
- libspa-bluetooth
- cifs-utils - cifs-utils
- ansible
- btrbk
- chezmoi
- elogind
- rsync
- unzip
state: present state: present
become: true become: true