clean up a little

This commit is contained in:
2026-09-15 21:37:45 +05:30
parent b17d8649ea
commit e07b18b587
+17 -2
View File
@@ -1,7 +1,10 @@
---
- hosts: all
name: setup desktop
- hosts:
- 127.0.0.1
connection: local
name: setup fedora workstation
tasks:
- name: remove fedora fluff
become: true
@@ -17,6 +20,7 @@
- firefox
- nodejs
state: absent
- name: install core components
become: true
ansible.builtin.dnf:
@@ -41,6 +45,7 @@
- mosh
- unzip
- flatpak
- name: install pup
become: true
unarchive:
@@ -48,6 +53,7 @@
creates: /usr/local/bin/pup
dest: /usr/local/bin/
src: https://github.com/ericchiang/pup/releases/download/v0.4.0/pup_v0.4.0_linux_amd64.zip
- name: install google-chrome dnf repository
become: true
copy:
@@ -86,6 +92,7 @@
repo_gpgcheck=1
gpgcheck=1
gpgkey=https://pkgs.tailscale.com/stable/fedora/repo.gpg
- name: install dnf packages
become: true
ansible.builtin.dnf:
@@ -134,6 +141,7 @@
- wayscriber
- qt6ct
- trash-cli
- name: install flatpak applications
become: true
flatpak:
@@ -167,12 +175,14 @@
- org.inkscape.Inkscape
- org.darktable.Darktable
- org.audacityteam.Audacity
- name: create group myself
become: true
group:
name: myself
gid: 690
system: true
- name: create users
loop:
- name: kevins
@@ -204,6 +214,7 @@
path: "{{file}}"
line: 'runtime = "/usr/bin/runc"'
search_string: 'runtime = '
- name: setup podman btrfs storage
become: true
vars:
@@ -218,6 +229,7 @@
path: "{{file}}"
line: "[storage]"
insertbefore: BOF
- name: set podman storage config to btrfs
lineinfile:
path: "{{file}}"
@@ -234,6 +246,7 @@
mode: "1644"
create: true
state: present
- name: tell PAM to unlock gnome-keyring in tty
become: true
with_items:
@@ -306,12 +319,14 @@
group: myself
owner: kevins
mode: '2770'
- name: check if HOME.git is cloned
become: true
become_user: kevins
register: home_repo
stat:
path: /home/myself/HOME.git/HEAD
- name: "clone HOME.git"
become: true
become_user: kevins