summaryrefslogtreecommitdiff
path: root/roles/base/tasks/main.yml
blob: 5484a3a6be8da492ccdff60143a852e0a1c72819 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
- name: load os/distrubtion/version specific tasks
  vars:
    params:
      files:
      - "{{ ansible_distribution_release }}.yml"
      - "{{ ansible_distribution }}.yml"
      - "{{ ansible_os_family }}.yml"
  loop: "{{ q('first_found', params) }}"
  loop_control:
    loop_var: tasks_file
  include_tasks: "{{ tasks_file }}"

- name: Remove startup message from screen
  lineinfile:
    regexp: "^startup_message"
    line: "startup_message off"
    dest: /etc/screenrc
    mode: 0644
  tags:
  - screen

- name: install htop config (1/2)
  loop:
    - /root
    - /etc/skel
  file:
    name: "{{ item }}/.config/htop/"
    state: directory
    mode: 0700

- name: install htop config (2/2)
  loop:
    - /root
    - /etc/skel
  copy:
    src: "{{ global_files_dir }}/common/htoprc"
    dest: "{{ item }}/.config/htop/"