Implement almost everything from dotfiles/bootstrap.sh

Missing:

- Flatpak adding remotes
- Spotify
main
earnest ma 2022-01-26 15:17:18 -05:00
parent ec68e6da78
commit 10c5ded088
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
7 changed files with 101 additions and 19 deletions

4
ensure.sh Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
sudo dnf install -yq --refresh python ansible
ansible-galaxy collection install ansible.posix
ansible-galaxy collection install community.general

View File

@ -1 +0,0 @@

View File

@ -1,6 +1,6 @@
---
- include_vars:
file: "{{ ansible_hostname }}.yml"
#- include_vars:
# file: "{{ ansible_hostname }}.yml"
- include: selinux.yml
- include: packages.yml
- include: users.yml

View File

@ -1,30 +1,75 @@
---
# - name: Configure repos
# Package management
# Essential packages: things that need to be available early
# Development packages
# Main packages
- name: Install essential packages
package:
name: "{{ packages }}"
state: latest
vars:
packages:
name:
- htop
- util-linux-user
- neovim
- remmina
- seahorse
- pinentry-gnome3 # kde, gpg
- tmux
- zsh
- xclip
# fonts
- jetbrains-mono-fonts-all
- fira-code-fonts
state: latest
# Hostname-specific package tasks
- include: hosts/{{ ansible_hostname }}.yml
# Configure repos that will need to be available
- name: Enable the RPM Fusion repository
dnf:
name:
- https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ansible_distribution_major_version}}.noarch.rpm
- https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ansible_distribution_major_version}}.noarch.rpm
disable_gpg_check: yes
state: present
- name: Add repos for Google Chrome
import_tasks: packages/google-chrome.yml
- name: Add repos for VSCodium
import_tasks: packages/vscodium.yml
- name: Install development packages
package:
name:
- '@Development tools'
- aerc
- codium
- direnv
- exa
- fd-find
- fzf
- git
- git-email
- git-publish
- isync
- ripgrep
- ShellCheck
- stow
state: latest
- name: Install main packages
package:
name:
- discord
- google-chrome-stable
- mpv
- nextcloud-client
- remmina
# gaming
- steam
- wine
- winetricks
state: latest
- name: Install zoom
when: use_zoom | default(False)
dnf:
name: 'https://zoom.us/client/latest/zoom_x86_64.rpm'
disable_gpg_check: true
state: present
#- name: Install hostname-specific packages
# package:
# name: "{{ extra_packages }}"
# state: latest

View File

@ -0,0 +1,14 @@
---
- name: Add signing key
rpm_key:
key: https://dl.google.com/linux/linux_signing_key.pub
state: present
- name: Add repo into repo.d list
yum_repository:
name: google-chrome
description: google-chrome repository
baseurl: http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled: true
gpgcheck: true
gpgkey: https://dl.google.com/linux/linux_signing_key.pub

View File

@ -0,0 +1,14 @@
---
- name: Add signing key
rpm_key:
key: https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg
state: present
- name: Add repo into repo.d list
yum_repository:
name: vscodium
description: vscodium repository
baseurl: https://download.vscodium.com/rpms/
enabled: true
gpgcheck: true
gpgkey: https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg

View File

@ -1 +1,7 @@
---
- name: Configure user earne
user:
name: earne
comment: EMW
shell: /usr/bin/zsh
groups: earne,wheel