base: Only install haveged on physical machines
[noc.git] / ansible / roles / base / tasks / 05tools.yml
1 ---
2 - name: install base tools
3   apt:
4     name:
5       - htop
6       - zsh
7
8 - name: set root default shell to zsh
9   user:
10     name: root
11     shell: /bin/zsh
12
13 - name: set default shell for adduser
14   with_dict:
15     DSHELL: /bin/zsh
16   lineinfile:
17     dest: /etc/adduser.conf
18     regexp: "^#?{{ item.key }}="
19     line: "{{ item.key }}={{ item.value }}"
20   loop_control:
21     label: "{{ item.key }}"
22
23 - name: Deploy default configuration for tools
24   with_dict:
25     /etc/htoprc: "{{ global_files_dir }}/common/htoprc"
26
27     /etc/zsh/zprofile: zprofile
28     /etc/zsh/zshrc: zshrc
29     /etc/skel/.zshrc: zshrc.skel
30
31   loop_control:
32     label: "{{ item.key }}"
33   copy:
34     mode: 0644
35     src: "{{ item.value }}"
36     dest: "{{ item.key }}"