consolidate setup scripts into this repository

This commit is contained in:
Morgan McMillian 2024-03-31 07:27:11 -07:00
parent e709dea03a
commit 34ae0a7177
5 changed files with 140 additions and 0 deletions

10
fedora-atomic/Makefile Normal file
View File

@ -0,0 +1,10 @@
run:
ansible-playbook --ask-become-pass main.yml
lint:
ansible-lint main.yml clean.yml
clean:
ansible-playbook --ask-become-pass clean.yml
.PHONY: run lint

12
fedora-atomic/clean.yml Normal file
View File

@ -0,0 +1,12 @@
---
- name: Setup workstation
hosts: 127.0.0.1
connection: local
tasks:
- name: Add additional RPM packages
ansible.builtin.dnf:
name:
- polarsys-b612-mono-fonts
state: absent
become: true

6
fedora-atomic/kinoite-setup.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
cd /etc/yum.repos.d
sudo wget https://pkgs.tailscale.com/stable/fedora/tailscale.repo
rpm-ostree override remove firefox firefox-langpacks
rpm-ostree install distrobox tailscale syncthing ansible falkon python3-keyring wl-clipboard kate mercurial mercurial-rust

109
fedora-atomic/main.yml Normal file
View File

@ -0,0 +1,109 @@
---
- name: Setup workstation
hosts: 127.0.0.1
connection: local
vars:
home_dir: "{{ ansible_facts['env']['HOME'] }}"
config_dir: "{{ ansible_facts['env']['HOME'] }}/.config"
share_dir: "{{ ansible_facts['env']['HOME'] }}/.local/share"
dotfiles_config_dir: "{{ ansible_facts['env']['HOME'] }}/dotfiles/.config"
tasks:
- name: Install Flatpaks from Flathub
community.general.flatpak:
name:
- io.gitlab.librewolf-community
- org.gajim.Gajim
- org.gajim.Gajim.Plugin.openpgp
- org.gtk.Gtk3theme.Breeze
- org.telegram.desktop
- io.crow_translate.CrowTranslate
- im.dino.Dino
- org.libreoffice.LibreOffice
- im.kaidan.kaidan
- im.pidgin.Pidgin
- org.kde.gwenview
- org.kde.okular
state: present
remote: flathub
become: true
- name: Install Flatpaks from Fedora
community.general.flatpak:
name:
- org.mozilla.Thunderbird
state: present
remote: fedora
become: true
- name: Setup h directory
ansible.builtin.file:
path: "{{ home_dir }}/h"
state: directory
mode: "0755"
- name: Setup sublime-text config directory
ansible.builtin.file:
path: "{{ config_dir }}/sublime-text"
state: directory
mode: "0755"
- name: Setup sublime-merge config directory
ansible.builtin.file:
path: "{{ config_dir }}/sublime-merge"
state: directory
mode: "0755"
- name: Setup bin directory
ansible.builtin.file:
path: "{{ home_dir }}/bin"
state: directory
mode: "0755"
- name: Link some magics
ansible.builtin.file:
src: "{{ home_dir }}/Sync/bin/p-wayland.sh"
dest: "{{ home_dir }}/bin/p"
state: link
- name: Install Starship
ansible.builtin.copy:
src: "{{ home_dir }}/Sync/bin/starship-aarch64"
dest: "{{ home_dir }}/bin/starship"
mode: "0755"
- name: Install Protonmail Bridge
ansible.builtin.copy:
src: "{{ home_dir }}/Sync/bin/bridge-aarch64"
dest: "{{ home_dir }}/bin/bridge"
mode: "0755"
- name: Setup msmtp config
ansible.builtin.file:
src: "{{ home_dir }}/Sync/.msmtprc"
dest: "{{ home_dir }}/.msmtprc"
state: link
- name: Link git config
ansible.builtin.file:
src: "{{ dotfiles_config_dir }}/git"
dest: "{{ config_dir }}/git"
state: link
- name: Link mercurial config
ansible.builtin.file:
src: "{{ dotfiles_config_dir }}/hg"
dest: "{{ config_dir }}/hg"
state: link
- name: Link nano config
ansible.builtin.file:
src: "{{ dotfiles_config_dir }}/nano"
dest: "{{ config_dir }}/nano"
state: link
- name: Link starship config
ansible.builtin.file:
src: "{{ dotfiles_config_dir }}/starship.toml"
dest: "{{ config_dir }}/starship.toml"
state: link

3
fedora-atomic/make.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
ansible-playbook --ask-become-pass main.yml