summaryrefslogtreecommitdiff
path: root/roles/base/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/base/tasks/main.yml')
-rw-r--r--roles/base/tasks/main.yml20
1 files changed, 10 insertions, 10 deletions
diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml
index 3c480213..e631d0d4 100644
--- a/roles/base/tasks/main.yml
+++ b/roles/base/tasks/main.yml
@@ -40,18 +40,18 @@
- screen
- name: install htop config (1/2)
- with_items:
- - /root
- - /etc/skel
+ loop:
+ - /root
+ - /etc/skel
file:
name: "{{ item }}/.config/htop/"
state: directory
mode: 0700
- name: install htop config (2/2)
- with_items:
- - /root
- - /etc/skel
+ loop:
+ - /root
+ - /etc/skel
copy:
src: "{{ global_files_dir }}/common/htoprc"
dest: "{{ item }}/.config/htop/"
@@ -65,6 +65,7 @@
state: directory
- name: disable net/fs/misc kernel modules
+ loop: "{{ modules_blacklist.net | union(modules_blacklist.fs) | union(modules_blacklist.misc) }}"
lineinfile:
dest: /etc/modprobe.d/disablemod.conf
line: "install {{ item }} /bin/true"
@@ -72,9 +73,11 @@
owner: root
group: root
mode: 0644
- with_items: "{{ modules_blacklist.net | union(modules_blacklist.fs) | union(modules_blacklist.misc) }}"
- name: Change various sysctl-settings, look at the sysctl-vars file for documentation
+ loop: "{{ sysctl_config | combine(sysctl_config_user) | dict2items }}"
+ loop_control:
+ label: "{{ item.key }} = {{ item.value }}"
sysctl:
name: "{{ item.key }}"
value: "{{ item.value }}"
@@ -82,9 +85,6 @@
state: present
reload: yes
ignoreerrors: yes
- with_dict: "{{ sysctl_config | combine(sysctl_config_user) }}"
- loop_control:
- label: "{{ item.key }} = {{ item.value }}"
- name: install extra packages
apt: