summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2017-12-13 01:28:22 +0100
committerChristian Pointner <equinox@spreadspace.org>2017-12-13 01:28:22 +0100
commit094946231d9e7edddfa043827ec00769a031e061 (patch)
tree36cc74c666b2c508d2e3639e08ac553a5c466402 /roles
parentadded workaround for new key detection (diff)
install htoprc and disable installation of recommends
Diffstat (limited to 'roles')
-rw-r--r--roles/base/files/htoprc26
-rw-r--r--roles/base/tasks/main.yaml17
2 files changed, 43 insertions, 0 deletions
diff --git a/roles/base/files/htoprc b/roles/base/files/htoprc
new file mode 100644
index 00000000..96502564
--- /dev/null
+++ b/roles/base/files/htoprc
@@ -0,0 +1,26 @@
+# Beware! This file is rewritten by htop when settings are changed in the interface.
+# The parser is also very primitive, and not human-friendly.
+fields=0 48 17 18 38 39 40 2 46 47 49 1
+sort_key=46
+sort_direction=1
+hide_threads=0
+hide_kernel_threads=1
+hide_userland_threads=0
+shadow_other_users=0
+show_thread_names=0
+show_program_path=1
+highlight_base_name=1
+highlight_megabytes=1
+highlight_threads=1
+tree_view=1
+header_margin=1
+detailed_cpu_time=0
+cpu_count_from_zero=0
+update_process_names=0
+account_guest_in_cpu_meter=0
+color_scheme=0
+delay=15
+left_meters=LeftCPUs Memory Swap
+left_meter_modes=1 1 1
+right_meters=RightCPUs Tasks LoadAverage Uptime
+right_meter_modes=1 2 2 2
diff --git a/roles/base/tasks/main.yaml b/roles/base/tasks/main.yaml
index 3e06761d..a4481920 100644
--- a/roles/base/tasks/main.yaml
+++ b/roles/base/tasks/main.yaml
@@ -37,6 +37,23 @@
tags:
- screen
+- name: install htop config (1/2)
+ with_items:
+ - /root
+ - /etc/skel
+ file:
+ name: "{{ item }}/.config/htop/"
+ state: directory
+ mode: 0700
+
+- name: install htop config (2/2)
+ with_items:
+ - /root
+ - /etc/skel
+ copy:
+ src: htoprc
+ dest: "{{ item }}/.config/htop/"
+
- name: Ensure /root is not world accessible
file:
path: /root