Add initial HUGO support, FreeBSD 13 support, and script for Ansible to hit dev branch. (#4)

* Create HUGO file.

* Add HUGO.

* Add script for running system against development branch.

* Add newline to end of file.

* Comment unused blocks.

* Add path of site that HUGO should host.

* Newlines, comments, and HUGO path. (#2) (#3)

* Create HUGO file.

* Add HUGO.

* Add script for running system against development branch.

* Add newline to end of file.

* Comment unused blocks.

* Add path of site that HUGO should host.

* FreeBSD is complaining about certbot not having dict object stdout. This whole playbook is supposed to be skipped though, lol.

* FreeBSD 13 is still mad. Ansible 2.11.2, jinja 2.11.2 (same version number??), Python 3.8.10.

* Fix root group to be existing variable. FreeBSD uses wheel.

* Allow choosing Github branch dynamically.

* `branch` needs to be at General level. Testing if this works...

* Change other `localhost` to `everything`.

* Update FreeBSD status.

* Goodbye, Code-OSS on Linux!

* Delete a terrible file.

* Remove excess tag.

* "Fix" SSHFS for FreeBSD.

* Variablize FreeBSD's loading of fusefs.

* Variablize /etc/rc.conf. Enable FuseFS more properly.

* Add beginning ticks.

* Add missing playbook.

* Enable FreeBSD mount job.

* Rearrange items to be more consistent with comment.

* It seems  FreeBSD removed the `gnome3` metapackage. Use `gnome3-lite` instead. Also add Telegram.

* Python is to 3.8 now.

* Expand on FreeBSD work.

* Expand on FreeBSD work.

* Add placeholders for Gitlab.

* Add parameter for Gitlab install.

* Add Gitlab playbook.

* Ensure FreeBSD uses the correct Python install.

* Add newline.

* Fix NFS for FreeBSD workstations.

* Remove unnecessary line, restricted install to Linux in playbook.

* Fix mount options for FreeBSD.

* Fix mount number, as well as system-specific facts.

* Add placeholders for remote viewing.

* Add RDP for FreeBSD.

* Omg! It works! Add setting enforcement.

* Always remove OSS.

* Remove hosts from explicit dev testing.
This commit is contained in:
2021-07-19 07:07:03 -05:00
committed by GitHub
parent bdf3ffa456
commit c59e706c17
24 changed files with 185 additions and 78 deletions

View File

@ -5,11 +5,12 @@
package:
name:
- xorg
- gnome3
- gnome3-lite
- "{{ firefox_esr }}"
- "{{ thunderbird }}"
- vscode
- gimp
- telegram-desktop
state: present
- name: Workstation | FreeBSD | GUI | Uninstall Bloat
@ -21,13 +22,14 @@
- name: Workstation | FreeBSD | GUI | Create rc.conf Entries
blockinfile:
path: /etc/rc.conf
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

View File

@ -37,7 +37,6 @@
remote: flathub
state: present
loop:
- com.visualstudio.code-oss
- com.vscodium.codium
- com.google.AndroidStudio
- com.jetbrains.PyCharm-Community
@ -50,14 +49,13 @@
remote: flathub
state: absent
loop:
- com.visualstudio.code-oss
- com.vscodium.codium
- com.google.AndroidStudio
- com.jetbrains.PyCharm-Community
ignore_errors: yes
when: coding is not defined
# Editor #
# Media Editors #
- name: Workstation | Linux | Flatpak Distro | Flatpak | Audio/Video Editor Installs
flatpak:
name: "{{ item }}"
@ -84,7 +82,7 @@
ignore_errors: yes
when: editing is not defined
# Games #
# Gaming #
- name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming Installs
flatpak:
name: "{{ item }}"
@ -114,6 +112,7 @@
loop:
- org.mozilla.firefox
- com.visualstudio.code # Why does this throw an error? It's the correct ID.
- com.visualstudio.code-oss
- org.midori_browser.Midori
- com.github.Eloston.UngoogledChromium
ignore_errors: yes

View File

@ -128,7 +128,7 @@
key: /org/gnome/shell/favorite-apps
value: "['org.gnome.Terminal.desktop', 'gnome-system-monitor.desktop', 'org.gnome.Nautilus.desktop',
'{{ browser }}', 'org.mozilla.Thunderbird.desktop',
'com.vscodium.codium.desktop', 'com.visualstudio.code-oss.desktop',
'com.vscodium.codium.desktop',
'org.shotcut.Shotcut.desktop',
'org.telegram.desktop.desktop', 'com.discordapp.Discord.desktop',
'rhythmbox.desktop', 'io.lbry.lbry-app.desktop',

View File

@ -1,15 +1,48 @@
---
# Use Apt specific because they're consistent! :)
# Mount network shares.
- name: Workstation | Settings | NFS | Facts
set_fact:
media_folder: /mnt/media
- name: Workstation | Settings | NFS | Install
mount_number: 0
- name: Workstation | Settings | NFS | Facts (Linux)
set_fact:
mount_options: defaults
when: ansible_system == "Linux"
- name: Workstation | Settings | NFS | Facts (FreeBSD)
set_fact:
mount_options: rw
when: ansible_system == "FreeBSD"
- name: Workstation | Settings | NFS | Install (Linux)
package:
name:
- "{{ nfs }}"
state: present
when: ansible_system == "Linux"
# https://www.unixmen.com/setup-nfs-server-on-freebsd/
- name: Workstation | Settings | NFS | Install (FreeBSD)
blockinfile:
path: "{{ rc_conf }}"
marker: "# {mark} MANAGED BY ANSIBLE | NFS Components"
block: |
nfs_server_enable="YES"
nfs_server_flags="-u -t -n 4"
rpcbind_enable="YES"
mountd_flags="-r"
mountd_enable="YES"
nfs_client_enable="YES"
nfs_client_flags="-n 4"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"
create: yes
backup: yes
when: ansible_system == "FreeBSD"
- name: Workstation | Settings | NFS | Create Folders
file:
@ -19,10 +52,11 @@
loop:
- "{{ media_folder }}"
- name: Workstation | Settings | NFS | Create Mount Instructions
blockinfile:
path: /etc/fstab
marker: "# {mark} MANAGED BY ANSIBLE | Media"
block: |
htpc:/mnt/hdd_unsafe/media {{ media_folder }} nfs defaults 0 0
htpc:/mnt/hdd_unsafe/media {{ media_folder }} nfs {{ mount_options }} {{ mount_number }} {{ mount_number }}
backup: yes

View File

@ -0,0 +1,40 @@
---
# Allow remote viewing via open/free RDP.
- name: Workstation | Settings | RDP | FreeBSD | Install
package:
name: xrdp
state: present
when: ansible_system == "FreeBSD"
- name: Workstation | Settings | RDP | FreeBSD | Enable
blockinfile:
path: "{{ rc_conf }}"
marker: "# {mark} MANAGED BY ANSIBLE | RDP Components"
block: |
xrdp_enable="YES"
xrdp_sesman_enable="YES"
state: present
create: yes
backup: yes
when: ansible_system == "FreeBSD"
- name: Workstation | Settings | RDP | FreeBSD | Enable GNOME
lineinfile:
path: /usr/local/etc/xrdp/startwm.sh
regexp: 'gnome-session'
line: 'exec gnome-session # MANAGED BY ANSIBLE'
state: present
create: yes
backup: yes
when: ansible_system == "FreeBSD"
- name: Workstation | Settings | RDP | FreeBSD | Disable xterm
lineinfile:
path: /usr/local/etc/xrdp/startwm.sh
regexp: 'xterm'
line: '#exec xterm # MANAGED BY ANSIBLE'
state: present
create: yes
backup: yes
when: ansible_system == "FreeBSD"

View File

@ -0,0 +1,2 @@
---
# Allow remote viewing desktops via VNC.