This commit is contained in:
bzoicas
2023-07-10 10:41:17 +03:00
commit dbb46eb92a
360 changed files with 13521 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
- name: system setup | autofs | install package
tags: autofs
package:
name: autofs
when:
- autofs is defined
- autofs == true
- name: autofs | start and enable daemon
tags: autofs
service:
name: autofs
state: started
enabled: true
when:
- autofs is defined
- autofs == true
- name: system setup | autofs | copy auto.master config file
tags: autofs,dotfiles,dotfiles-bzoicas
copy:
src: autofs/auto.master
dest: "{{ autofs_master_config }}"
owner: root
group: root
mode: 0644
when:
- autofs is defined
- autofs == true
notify: restart_autofs
- name: system setup | autofs | copy auto.nfs config file
tags: autofs,dotfiles,dotfiles-bzoicas
copy:
src: autofs/auto.nfs
dest: "{{ autofs_nfs_config }}"
owner: root
group: root
mode: 0644
when:
- autofs is defined
- autofs == true
notify: restart_autofs

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,74 @@
# set up flatpak support
- name: system setup | tweaks | add flatpak support
package:
name: flatpak
state: present
- name: system setup | tweaks | enable fedora-workstation-repositories
tags: packages,system,system-packages,workstation-packages
package:
name:
- fedora-workstation-repositories
when: ansible_distribution in ["Fedora"]
- name: system setup | tweaks | enable frpm fusion
shell: sudo dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
when: ansible_distribution in ["Fedora"]
- name: system setup | tweaks | flatpak | add flathub remote
tags: packages,flatpak,workstation-packages
become_user: bzoicas
flatpak_remote:
name: flathub
flatpakrepo_url: https://flathub.org/repo/flathub.flatpakrepo
method: user
state: present
# distro-specific tasks for arch
- name: system setup | tweaks | install xorg (archlinux)
tags: distro,distro-setup,packages,system,system-packages,workstation-packages
package:
name: xorg-server
when: ansible_distribution == "Archlinux"
- name: system setup | tweaks | install nvidia gpu packages (arch)
tags: distro,distro-setup,packages,nvidia,system,system-packages,workstation-packages
package:
name:
- nvidia
- nvidia-lts
- nvidia-utils
when:
- ansible_distribution == "Archlinux"
- gpu is defined
- gpu == "nvidia"
- name: system setup | tweaks | install vbox gpu packages (arch)
tags: distro,distro-setup,packages,system,system-packages,vbox,workstation-packages
package:
name:
- virtualbox-guest-utils
- xf86-video-vmware
when:
- ansible_distribution == "Archlinux"
- gpu is defined
- gpu == "vbox"
# distro-specific tasks for ubuntu
- name: system setup | tweaks | disable apport in config on ubuntu-based hosts
tags: distro,distro-setup,apport,ubuntu
lineinfile:
dest: /etc/default/apport
regexp: "enabled="
line: "enabled=0"
failed_when: false
when: ansible_distribution in ["Pop!_OS", "Ubuntu"]
- name: system setup | tweaks | disable and stop apport service on ubuntu-based hosts
tags: distro,distro-setup,apport,ubuntu
service:
name: apport
enabled: no
state: stopped
failed_when: false
when: ansible_distribution in ["Pop!_OS", "Ubuntu"]