aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/linux_status/tasks/power_management.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/linux_status/tasks/power_management.yml')
-rw-r--r--roles/linux_status/tasks/power_management.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/linux_status/tasks/power_management.yml b/roles/linux_status/tasks/power_management.yml
index 2288d24..e49fef4 100644
--- a/roles/linux_status/tasks/power_management.yml
+++ b/roles/linux_status/tasks/power_management.yml
@@ -5,25 +5,25 @@
state: directory
owner: root
group: root
- mode: '755'
+ mode: '0755'
- name: Enable power management
+ when: linux_status_enable_power_management
become: true
ansible.builtin.file:
path: /etc/systemd/system/linux-status.service.d/99-disable_power_management.conf
state: absent
- when: linux_status_enable_power_management
notify: linux_status_configured
- name: Disable power management
+ when: not linux_status_enable_power_management
become: true
ansible.builtin.template:
src: disable_power_management.conf.j2
dest: /etc/systemd/system/linux-status.service.d/99-disable_power_management.conf
owner: root
group: root
- mode: '644'
- when: not linux_status_enable_power_management
+ mode: '0644'
notify: linux_status_configured
- name: Restart systemd service if necessary