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

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

View File

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

View File

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

View File

@ -56,6 +56,12 @@
state: present
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)
package:
name:

View File

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