fix: move sysctl gate back to import
All checks were successful
ci/woodpecker/push/linting Pipeline was successful

This commit is contained in:
Simon Cornet 2026-05-20 09:30:21 +02:00
commit e43a674de4
2 changed files with 4 additions and 3 deletions

View file

@ -155,7 +155,9 @@
# sysctl
- name: "sysctl - set sysctl"
ansible.builtin.import_tasks: "sysctl.yaml"
when: "ansible_facts['virtualization_type'] in ['kvm', 'none']"
when:
- "sysctl is defined"
- "ansible_facts['virtualization_type'] in ['kvm', 'none']"
tags: "sysctl"
# systemctl

View file

@ -1,7 +1,7 @@
---
# configure sysctl
- name: "sysctl - set {{ __sysctl['name'] }}"
- name: "sysctl - set values }}"
ansible.posix.sysctl:
name: "{{ __sysctl['name'] }}"
value: "{{ __sysctl['value'] }}"
@ -10,4 +10,3 @@
loop_control:
loop_var: "__sysctl"
tags: "sysctl"
when: "sysctl is defined"