Fixed the state module called in FreeBSD sleep states
This commit is contained in:
parent
431ac0b0d9
commit
5f9c364c51
@ -2,15 +2,15 @@
|
|||||||
{% set settings = system_settings['sleep'] %}
|
{% set settings = system_settings['sleep'] %}
|
||||||
|
|
||||||
{% if settings.disable %}
|
{% if settings.disable %}
|
||||||
# Disable sleep via sysrc
|
# Disable sleep via sysctl
|
||||||
sleep_disable_sysrc:
|
sleep_disable_sysctl:
|
||||||
sysrc.managed:
|
sysctl.present:
|
||||||
- name: 'kern.suspend_blocked'
|
- name: 'kern.suspend_blocked'
|
||||||
- value: '1'
|
- value: '1'
|
||||||
{% else %}
|
{% else %}
|
||||||
# Enable sleep via sysrc
|
# Enable sleep via sysctl
|
||||||
sleep_enable_sysrc:
|
sleep_enable_sysctl:
|
||||||
sysrc.managed:
|
sysctl.present:
|
||||||
- name: 'kern.suspend_blocked'
|
- name: 'kern.suspend_blocked'
|
||||||
- value: '0'
|
- value: '0'
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user