General Fixes (#20)

* Remove redundant calls to facts.

* Must have accidentally removed miner/system thinking it was general/system.

* Add missing variable xmr_stak_cpu.

* Ignore when connection to GitHub fails.

* Telegraf agents have been hoarding resources on Debian servers. Reset job will killall should work properly now.

* Once the function sets accept, it is staying for the session. Need to unset in case `update -y` is run, cancelled, and then `update` is run.
This commit is contained in:
Hyperling 2021-12-17 17:34:21 -06:00 committed by GitHub
parent 8e4247fd58
commit 98f24fbbef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 7 deletions

View File

@ -104,14 +104,13 @@
####### Workstations ####### ####### Workstations #######
# Additional setup for systems with GUI.
# Additional setup for systems with GUI.
- name: Main | Workstation Setup - name: Main | Workstation Setup
block: block:
- include: facts/general/system.yml
- include: facts/workstation/package.yml - include: facts/workstation/package.yml
- include: facts/general/service.yml
# Set Up Desktop Environments # # Set Up Desktop Environments #
- include: tasks/workstation/freebsd/software/gui.yml - include: tasks/workstation/freebsd/software/gui.yml
@ -161,6 +160,7 @@
####### Miners ####### ####### Miners #######
# Additional setup for miners. # Additional setup for miners.
- name: Main | Miner Setup - name: Main | Miner Setup
block: block:
@ -232,8 +232,8 @@
####### Reporting ####### ####### Reporting #######
# Provide information for analysis. # Provide information for analysis.
- include: tasks/general/software/telegraf.yml - include: tasks/general/software/telegraf.yml

View File

@ -85,7 +85,7 @@
; CURRENTLY FREEBSD-ONLY ; CURRENTLY FREEBSD-ONLY
; ;
; vnc : Set to true for installation of VNC protocol ; vnc : Set to true for installation of VNC protocol
; NOT IMPLEMENTED YET ; UNFINISHED/UNTESTED
; ;
[global] [global]
marker: '; {mark} MANAGED BY ANSIBLE | Workstation Config' marker: '; {mark} MANAGED BY ANSIBLE | Workstation Config'
@ -147,8 +147,13 @@
; Example: 100K ; Example: 100K
; ;
; ethminer : Set to true for installation of ethminer ; ethminer : Set to true for installation of ethminer
; UNFINISHED/UNTESTED
; ;
; nvidia : Set to true for NVidia support in ethminer. ; nvidia : Set to true for NVidia support in ethminer.
; UNFINISHED/UNTESTED
;
; xmr_stak_cpu : Set to true for istallation
; UNFINISHED/UNTESTED
; ;
[global] [global]
marker: '; {mark} MANAGED BY ANSIBLE | Miner Config' marker: '; {mark} MANAGED BY ANSIBLE | Miner Config'
@ -169,6 +174,7 @@
eth_minhashrate: "{{ lookup('ini', 'eth_minhashrate file={{mnr_file}} default=false') }}" eth_minhashrate: "{{ lookup('ini', 'eth_minhashrate file={{mnr_file}} default=false') }}"
ethminer: "{{ lookup('ini', 'ethminer file={{mnr_file}} default=false') }}" ethminer: "{{ lookup('ini', 'ethminer file={{mnr_file}} default=false') }}"
nvidia: "{{ lookup('ini', 'nvidia file={{mnr_file}} default=false') }}" nvidia: "{{ lookup('ini', 'nvidia file={{mnr_file}} default=false') }}"
xmr_stak_cpu: "{{ lookup('ini', 'xmr_stak_cpu file={{mnr_file}} default=false') }}"
- name: General | Account Management | Provisioning Configuration | Miner | Print - name: General | Account Management | Provisioning Configuration | Miner | Print
debug: debug:
@ -185,6 +191,7 @@
- eth_minhashrate - eth_minhashrate
- ethminer - ethminer
- nvidia - nvidia
- xmr_stak_cpu
## Server ## ## Server ##

View File

@ -125,6 +125,7 @@
-y : Assume yes to any prompts." -y : Assume yes to any prompts."
unset OPTIND unset OPTIND
unset accept
while getopts ":hy" opt; do while getopts ":hy" opt; do
case $opt in case $opt in
h) echo -e "$usage" h) echo -e "$usage"

View File

@ -56,6 +56,12 @@
state: present state: present
when: ansible_pkg_mgr == "dnf" when: ansible_pkg_mgr == "dnf"
- name: General | Software | Services | Install killall (Looking at you, Debian)
package:
name: psmisc
state: present
when: ansible_distribution == "Debian"
- name: General | Software | Packages | Update Software (Disabled) - name: General | Software | Packages | Update Software (Disabled)
package: package:
name: name:

View File

@ -7,6 +7,7 @@
dest: "{{ lynis_install_dir }}" dest: "{{ lynis_install_dir }}"
clone: yes clone: yes
force: yes force: yes
ignore_errors: yes
- name: General | Tests | Lynis | Ensure Permissions (Looking at you Parrot OS!) - name: General | Tests | Lynis | Ensure Permissions (Looking at you Parrot OS!)
file: file: