Skip to content

Commit

Permalink
Merge pull request #159 from zbrojny120/master
Browse files Browse the repository at this point in the history
Fix errors produced by ansible-lint
  • Loading branch information
rndmh3ro authored Apr 30, 2019
2 parents d67d570 + a9c8dfc commit 29d0421
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
- name: update-initramfs
command: 'update-initramfs -u'
2 changes: 1 addition & 1 deletion tasks/limits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
mode: '0755'
state: 'directory'

- name: create aditional limits config file -> 10.hardcore.conf | sysctl-31a, sysctl-31b
- name: create additional limits config file -> 10.hardcore.conf | sysctl-31a, sysctl-31b
pam_limits:
dest: '/etc/security/limits.d/10.hardcore.conf'
domain: '*'
Expand Down
6 changes: 2 additions & 4 deletions tasks/sysctl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,11 @@
owner: 'root'
group: 'root'
mode: '0440'
notify:
- update-initramfs
when: ansible_os_family == 'Debian' and os_security_kernel_enable_module_loading
register: initramfs

- name: update-initramfs
command: 'update-initramfs -u'
when: initramfs.changed

- name: create a combined sysctl-dict if overwrites are defined
set_fact:
sysctl_config: '{{ sysctl_config | combine(sysctl_overwrite) }}'
Expand Down

0 comments on commit 29d0421

Please sign in to comment.