fix: move sysctl when condition to task
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
This commit is contained in:
parent
d12faeace5
commit
470e6aff49
2 changed files with 2 additions and 3 deletions
|
|
@ -155,9 +155,7 @@
|
|||
# sysctl
|
||||
- name: "sysctl - set sysctl"
|
||||
ansible.builtin.import_tasks: "sysctl.yaml"
|
||||
when:
|
||||
- "sysctl is defined"
|
||||
- "ansible_facts['virtualization_type'] in ['kvm', 'none']"
|
||||
when: "ansible_facts['virtualization_type'] in ['kvm', 'none']"
|
||||
tags: "sysctl"
|
||||
|
||||
# systemctl
|
||||
|
|
|
|||
|
|
@ -10,3 +10,4 @@
|
|||
loop_control:
|
||||
loop_var: "__sysctl"
|
||||
tags: "sysctl"
|
||||
when: "sysctl is defined"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue