Skip to content

Commit

Permalink
Merge pull request #542 from konstruktoid/sysctl
Browse files Browse the repository at this point in the history
add option to manage sysctl
  • Loading branch information
konstruktoid authored Feb 13, 2024
2 parents 9104eaf + 78ba346 commit f3b9ae3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions defaults/main/sysctl.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
manage_sysctl: true

sysctl_dev_tty_ldisc_autoload: 0

ipv4_sysctl_settings:
Expand Down
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
ansible.builtin.include_tasks:
file: sysctl.yml
when:
- manage_sysctl
- ansible_virtualization_type not in ["container", "docker", "podman"]

- name: Disable kernel modules
Expand Down

0 comments on commit f3b9ae3

Please sign in to comment.