Skip to content

Commit 29d0421

Browse files
authored
Merge pull request #159 from zbrojny120/master
Fix errors produced by ansible-lint
2 parents d67d570 + a9c8dfc commit 29d0421

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

handlers/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
- name: update-initramfs
3+
command: 'update-initramfs -u'

tasks/limits.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
mode: '0755'
1010
state: 'directory'
1111

12-
- name: create aditional limits config file -> 10.hardcore.conf | sysctl-31a, sysctl-31b
12+
- name: create additional limits config file -> 10.hardcore.conf | sysctl-31a, sysctl-31b
1313
pam_limits:
1414
dest: '/etc/security/limits.d/10.hardcore.conf'
1515
domain: '*'

tasks/sysctl.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@
3030
owner: 'root'
3131
group: 'root'
3232
mode: '0440'
33+
notify:
34+
- update-initramfs
3335
when: ansible_os_family == 'Debian' and os_security_kernel_enable_module_loading
3436
register: initramfs
3537

36-
- name: update-initramfs
37-
command: 'update-initramfs -u'
38-
when: initramfs.changed
39-
4038
- name: create a combined sysctl-dict if overwrites are defined
4139
set_fact:
4240
sysctl_config: '{{ sysctl_config | combine(sysctl_overwrite) }}'

0 commit comments

Comments
 (0)