From 094946231d9e7edddfa043827ec00769a031e061 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 13 Dec 2017 01:28:22 +0100 Subject: install htoprc and disable installation of recommends --- roles/base/files/htoprc | 26 ++++++++++++++++++++++++++ roles/base/tasks/main.yaml | 17 +++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 roles/base/files/htoprc (limited to 'roles') 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 -- cgit v1.2.3