General Improvements + Miner Deprecation (#23)
* Add volume key controls. * Add placeholder for LBRY app. * Refactor gui into gnome and packages. Remove deprecated lineinfiles. Enhance package management. * Variablize tar to fix FreeBSD. * Variablize tar to fix FreeBSD. * Take FreeBSD gui.yml refactor into account. * Unfinished changes to use self-signed cert so local traffic can hit https. Server starts fine, but getting "gnutls_handshake() failed: An unexpected TLS packet was received." on client's `git clone`. * Make D2D optional. FreeBSD is still having a hard time compiling it. * Use a block for Dash To Dock so only one ignore_errors is necessary. * Deprecate miner section since machines have been decommissioned. * Remove deprecated file. * Switch to lightdm on FreeBSD. * Automate GPU driver installation. * Updated DWM config and added TODO's. * Move lynis to src folder for cleanliness. * Remove debug. * Refactor for "shared" system type folder. * Fix FreeBSD gpu.yml location. * Add a default hosts file to hide warnings.
This commit is contained in:
43
tasks/workstation/freebsd/software/gnome.yml
Normal file
43
tasks/workstation/freebsd/software/gnome.yml
Normal file
@ -0,0 +1,43 @@
|
||||
---
|
||||
# Provide FreeBSD with a DE.
|
||||
|
||||
- name: Workstation | FreeBSD | Software | GUI | Install UI Components
|
||||
package:
|
||||
name:
|
||||
- xorg
|
||||
- gnome3-lite
|
||||
- "{{ firefox_esr }}"
|
||||
- "{{ evolution }}"
|
||||
- vscode
|
||||
- gimp
|
||||
- telegram-desktop
|
||||
- lightdm
|
||||
- lightdm-gtk-greeter
|
||||
state: present
|
||||
|
||||
- name: Workstation | FreeBSD | Software | GUI | Create rc.conf Entries
|
||||
blockinfile:
|
||||
path: "{{ rc_conf }}"
|
||||
marker: "# {mark} MANAGED BY ANSIBLE | GNOME Components"
|
||||
block: |
|
||||
dbus_enable="YES"
|
||||
hald_enable="YES"
|
||||
gnome_enable="YES"
|
||||
#gdm_enable="YES"
|
||||
lightdm_enable="YES"
|
||||
create: yes
|
||||
backup: yes
|
||||
|
||||
- name: Workstation | FreeBSD | Software | GUI | Create fstab Entries
|
||||
blockinfile:
|
||||
path: /etc/fstab
|
||||
block: |
|
||||
proc /proc procfs rw 0 0
|
||||
marker: '# {mark} MANAGED BY ANSIBLE | GNOME Components'
|
||||
state: present
|
||||
backup: yes
|
||||
|
||||
- name: Workstation | FreeBSD | Software | GUI | Mount All
|
||||
shell: mount -a
|
||||
args:
|
||||
warn: false
|
17
tasks/workstation/freebsd/software/gpu.yml
Normal file
17
tasks/workstation/freebsd/software/gpu.yml
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
# Provide FreeBSD with GPU driver.
|
||||
|
||||
- name: Workstation | FreeBSD | Software | GPU Driver | Install
|
||||
package:
|
||||
name:
|
||||
- drm-kmod
|
||||
state: present
|
||||
|
||||
- name: Workstation | FreeBSD | Software | GPU Driver | Create rc.conf Entries
|
||||
blockinfile:
|
||||
path: "{{ rc_conf }}"
|
||||
marker: "# {mark} MANAGED BY ANSIBLE | GPU Components"
|
||||
block: |
|
||||
kld_list="{{ freebsd_gpu }}"
|
||||
create: yes
|
||||
backup: yes
|
@ -1,63 +0,0 @@
|
||||
---
|
||||
# Provide FreeBSD with a DE.
|
||||
|
||||
- name: Workstation | FreeBSD | GUI | Install UI Components
|
||||
package:
|
||||
name:
|
||||
- xorg
|
||||
- gnome3-lite
|
||||
- "{{ firefox_esr }}"
|
||||
- "{{ evolution }}"
|
||||
- vscode
|
||||
- gimp
|
||||
- telegram-desktop
|
||||
state: present
|
||||
|
||||
- name: Workstation | FreeBSD | GUI | Uninstall Bloat
|
||||
package:
|
||||
name:
|
||||
- "{{ firefox }}"
|
||||
- "{{ thunderbird }}"
|
||||
state: absent
|
||||
|
||||
- name: Workstation | FreeBSD | GUI | Create rc.conf Entries
|
||||
blockinfile:
|
||||
path: "{{ rc_conf }}"
|
||||
marker: "# {mark} MANAGED BY ANSIBLE | GUI Components"
|
||||
block: |
|
||||
dbus_enable="YES"
|
||||
hald_enable="YES"
|
||||
gnome_enable="YES"
|
||||
gdm_enable="YES"
|
||||
create: yes
|
||||
backup: yes
|
||||
|
||||
- name: Workstation | FreeBSD | GUI | Create proc fstab Entry
|
||||
lineinfile:
|
||||
path: /etc/fstab
|
||||
regexp: '^proc'
|
||||
line: proc /proc procfs rw 0 0
|
||||
state: absent
|
||||
backup: yes
|
||||
|
||||
- name: Workstation | FreeBSD | GUI | Create proc fstab Comment
|
||||
lineinfile:
|
||||
path: /etc/fstab
|
||||
regexp: '^# MANAGED BY ANSIBLE | Leet Share'
|
||||
line: '# MANAGED BY ANSIBLE | Leet Share'
|
||||
state: absent
|
||||
insertbefore: '^proc'
|
||||
|
||||
- name: Workstation | FreeBSD | GUI | Create fstab Entries
|
||||
blockinfile:
|
||||
path: /etc/fstab
|
||||
block: |
|
||||
proc /proc procfs rw 0 0
|
||||
marker: '# {mark} MANAGED BY ANSIBLE | GUI Components'
|
||||
state: present
|
||||
backup: yes
|
||||
|
||||
- name: Workstation | FreeBSD | GUI | Mount All
|
||||
shell: mount -a
|
||||
args:
|
||||
warn: false
|
4
tasks/workstation/freebsd/software/lbry.yml
Normal file
4
tasks/workstation/freebsd/software/lbry.yml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
# Install LBRY desktop client.
|
||||
|
||||
# TODO: https://github.com/lbryio/lbry-desktop#install
|
74
tasks/workstation/freebsd/software/packages.yml
Normal file
74
tasks/workstation/freebsd/software/packages.yml
Normal file
@ -0,0 +1,74 @@
|
||||
---
|
||||
# Packages for FreeBSD workstation.
|
||||
|
||||
# General #
|
||||
|
||||
- name: Workstation | FreeBSD | Software | Packages | General | Install
|
||||
package:
|
||||
name:
|
||||
- "{{ firefox_esr }}"
|
||||
- "{{ evolution }}"
|
||||
- telegram-desktop
|
||||
- libreoffice
|
||||
state: present
|
||||
|
||||
- name: Workstation | FreeBSD | Software | Packages | General | Uninstall Bloat
|
||||
package:
|
||||
name:
|
||||
- "{{ firefox }}"
|
||||
- "{{ thunderbird }}"
|
||||
state: absent
|
||||
|
||||
# Coding #
|
||||
|
||||
- name: Workstation | FreeBSD | Software | Packages | Coding | Install
|
||||
package:
|
||||
name:
|
||||
- vscode
|
||||
state: present
|
||||
when: coding == true
|
||||
|
||||
- name: Workstation | FreeBSD | Software | Packages | Coding | Install
|
||||
package:
|
||||
name:
|
||||
- vscode
|
||||
state: absent
|
||||
when: not coding == true
|
||||
|
||||
# Media Editors #
|
||||
|
||||
- name: Workstation | FreeBSD | Software | Packages | Editing | Install
|
||||
package:
|
||||
name:
|
||||
- gimp
|
||||
- shotcut
|
||||
- obs-studio
|
||||
state: present
|
||||
when: editing == true
|
||||
|
||||
- name: Workstation | FreeBSD | Software | Packages | Editing | Install
|
||||
package:
|
||||
name:
|
||||
- gimp
|
||||
- shotcut
|
||||
- obs-studio
|
||||
state: absent
|
||||
when: not editing == true
|
||||
|
||||
# Gaming #
|
||||
|
||||
- name: Workstation | FreeBSD | Software | Packages | Gaming | Install
|
||||
package:
|
||||
name:
|
||||
- 0ad
|
||||
- supertuxkart
|
||||
state: present
|
||||
when: gaming == true
|
||||
|
||||
- name: Workstation | FreeBSD | Software | Packages | Gaming | Install
|
||||
package:
|
||||
name:
|
||||
- 0ad
|
||||
- supertuxkart
|
||||
state: absent
|
||||
when: not gaming == true
|
Reference in New Issue
Block a user