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