From: nicoo <nicoo@realraum.at>
Date: Mon, 26 Nov 2018 22:31:24 +0000 (+0100)
Subject: Ship default /etc/htoprc in access points & base
X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=aa2135a70879798b015a4fd417660e22d4dd2f06;p=noc.git

Ship default /etc/htoprc in access points & base
---

diff --git a/ansible/group_vars/accesspoints/main.yml b/ansible/group_vars/accesspoints/main.yml
index 233b08a..7d4b030 100644
--- a/ansible/group_vars/accesspoints/main.yml
+++ b/ansible/group_vars/accesspoints/main.yml
@@ -146,7 +146,7 @@ openwrt_mixin:
       {{ key }}
       {% endfor %}
 
-  /root/.config/htop/htoprc:
+  /etc/htoprc:
     file: "{{ global_files_dir }}/common/htoprc"
 
 
diff --git a/ansible/roles/base/tasks/main.yml b/ansible/roles/base/tasks/main.yml
index e7e808e..7fb9d24 100644
--- a/ansible/roles/base/tasks/main.yml
+++ b/ansible/roles/base/tasks/main.yml
@@ -163,6 +163,8 @@
 
 - name: Deploy default configuration for tools
   with_dict:
+    /etc/htoprc: "{{ global_files_dir }}/common/htoprc"
+
     /etc/zsh/zprofile: zprofile
     /etc/zsh/zshrc: zshrc
     /etc/skel/.zshrc: zshrc.skel