Hyperling 1f5fdb7eb5
General Release (#17)
* Add a few aliases for initializing projects.

* Begin creating executables in bin for flatpaks. Create an array to reduce future changes.

* Add quotes.

* Create files as user and set executable permissions.

* Split exec dir from array section.

* Increase interval for Telegraf but keep the flush at 30s.

* Add alias goodbye/bye, modify alias names for initializing program and video projects.

* Add newline.

* Add content to file to remove warning.

* Use arrays for Flatpak sections. Create executable files for them.

* Move sudoer files into shared folder.

* First stab at automating a GitLab install.

* First stab at automating DWM install.

* Fix 'usr' typo.

* Lowercase dwm.

* Fix config play. Install font-awesome.

* Add placeholder.

* Add dmenu and st.

* Fix typo. Hopefully also fixes ~/bin executables.

* Add Signal. Remove Discord.

* Remove extra line.

* Add newline.

* Move dbus-launch to correct app.

* Fix clock minutes.

* Add server for GitLab.

* Change check, package was not registering anything.

* Change success to failed.

* Change to http. Will use reverse proxy.

* Remove useless sudo. Go ahead and allow postfix to be installed.

* Fix debug option "var".

* Only give the out lines. Remove exit, doesn't stop the job.

* Add a few games and test them on dell-laptop.

* Ignore Lutris errors, Rolling Rhino doesn't like the PPA. ;)

* Add goodbye for updating then quitting.

* Add airbook to gaming.

* Add dnf.

* Fix missing underscores.

* Install cronie on Fedora.

* Beginning to add Fedora.

* Add Fedora values.

* Make font-awesome optional since it may need installed manually on some systems.

* Fix typo in ignore_errors.

* Allow DWM to fail, won't work for all workstations. Fedora doesn't have X11 headers.

* Most dists are using python3-psutil for the psutil package name. Make it the default.

* Fix firefox_esr variable.

* More Fedora support.

* Move installation of cron to more applicable task list.

* Fic nfs-utils typo.

* The font is honestly pretty important. ;)

* Add Librewolf for testing vs Brave.

* For some reason the other link didn't work for Fedora, add the one from flatpak's instructions.

* Fedora status update.

* Add games to Inspiron.

* LibreWolf is amazing. Use it as default if available.

* Use English rather than code for `and` and `or`.

* Always have LibreWolf pinned if it's available. Brave should still be the main browser for URL-clicking compatibility.

* Fix comma.

* Add entry for testing Fedora Gitlab server.

* Attempt to automate more of the Gitlab setup, especially the part of being behind a reverse proxy. Also add Fedora family support.

* Specify the package managers for Gitlab.

* Add missing bracket.

* Add another missing bracket.

* Fix gitlab's when clause.

* Another fix for the gitlab when.

* Change original gitlab install to be Community Edition.

* Fix mgr typo. Create config file if it doesn't exist.

* Remove duplicate `when` on Lutris uninstall.

* Gitlab script gets a packagecloud.io error for Fedora. Looks like only CentOS and its derivatives are supported.

* Update status of Fedora.
2021-11-07 12:40:31 -06:00

84 lines
2.9 KiB
YAML

---
# Define file, folder, and other facts per OS.
- name: General | Facts | System | Global
set_fact:
leet_ssh: 'ling@leet'
leet_drive: /mnt/leet
lynis_install_dir: /usr/local/lynis
dwm_install_dir: /usr/local/src/dwm
st_install_dir: /usr/local/src/st
global_bin: /usr/local/bin
x_desktops: /usr/share/xsessions
- name: General | Facts | System | Linux
set_fact:
rc_conf: /dev/null
sudoers_install_dir: /etc/sudoers.d/
shutdown_command: sudo shutdown -h now
when: ansible_system == "Linux"
- name: General | Facts | System | FreeBSD
set_fact:
rc_conf: /etc/rc.conf
sudoers_install_dir: /usr/local/etc/sudoers.d/
shutdown_command: sudo shutdown -p now
when: ansible_system == "FreeBSD"
- name: General | Facts | System | 1337 Drive Mounted?
stat:
path: "{{ leet_drive }}/Temp/ansible"
register: leet_drive_details
- name: General | Facts | System | Report Location = 1337
set_fact:
report_location: "{{ leet_drive }}/Temp/ansible"
when: leet_drive_details.stat.exists
- name: General | Facts | System | Report Location = /root
set_fact:
report_location: "/root"
report_scp_location: "Temp/ansible"
when: not leet_drive_details.stat.exists
- name: General | Facts | System | Report File Names
set_fact:
heartbeat_report_name: "{{ ansible_hostname }}.txt"
ansible_pull_report_name: "{{ ansible_hostname }}_last_pull_times.txt"
lynis_report_name: "{{ ansible_hostname }}_lynis.txt"
nmap_report_name: "{{ ansible_hostname }}_nmap.txt"
- name: General | Facts | System | Report Locations (SSHFS)
set_fact:
heartbeat_report: "{{ report_location }}/{{ heartbeat_report_name }}"
ansible_pull_report: "{{ report_location }}/pull/{{ ansible_pull_report_name }}"
lynis_report: "{{ report_location }}/lynis/{{ lynis_report_name }}"
nmap_report: "{{ report_location }}/nmap/{{ nmap_report_name }}"
when: leet_drive_details.stat.exists
- name: General | Facts | System | Report Locations (Local)
set_fact:
heartbeat_report: "{{ report_location }}/{{ heartbeat_report_name }}"
ansible_pull_report: "{{ report_location }}/{{ ansible_pull_report_name }}"
lynis_report: "{{ report_location }}/{{ lynis_report_name }}"
nmap_report: "{{ report_location }}/{{ nmap_report_name }}"
when: not leet_drive_details.stat.exists
- name: General | Facts | System | Report Destinations (SCP)
set_fact:
heartbeat_report_scp: "{{ leet_ssh }}:{{ report_scp_location }}/{{ heartbeat_report_name }}"
ansible_pull_report_scp: "{{ leet_ssh }}:{{ report_scp_location }}/pull/{{ ansible_pull_report_name }}"
lynis_report_scp: "{{ leet_ssh }}:{{ report_scp_location }}/lynis/{{ lynis_report_name }}"
nmap_report_scp: "{{ leet_ssh }}:{{ report_scp_location }}/nmap/{{ nmap_report_name }}"
when: not leet_drive_details.stat.exists
- name: General | Facts | System | Ansible Branch
set_fact:
branch: main
when: branch is not defined