Skip to content

Commit

Permalink
add option to manage sysctl
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
  • Loading branch information
konstruktoid committed Feb 13, 2024
1 parent 9104eaf commit 78ba346
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 78ba346

Please sign in to comment.