diff --git a/defaults/main/sysctl.yml b/defaults/main/sysctl.yml index 751f977a..1e4e19a4 100644 --- a/defaults/main/sysctl.yml +++ b/defaults/main/sysctl.yml @@ -1,4 +1,6 @@ --- +manage_sysctl: true + sysctl_dev_tty_ldisc_autoload: 0 ipv4_sysctl_settings: diff --git a/tasks/main.yml b/tasks/main.yml index 584cdc6e..36287e2c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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