fix: move sysctl when condition to task
All checks were successful
ci/woodpecker/push/linting Pipeline was successful

This commit is contained in:
Simon Cornet 2026-05-20 09:27:27 +02:00
commit 470e6aff49
2 changed files with 2 additions and 3 deletions

View file

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

View file

@ -10,3 +10,4 @@
loop_control: loop_control:
loop_var: "__sysctl" loop_var: "__sysctl"
tags: "sysctl" tags: "sysctl"
when: "sysctl is defined"