aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/linux_status/handlers
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-22 20:45:35 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-22 20:45:35 +0200
commit42c8f3dd27d3c2bc7da958de11e3fb10bb5b082c (patch)
treeba857e75befc0fe67de05320fb3066699076fad7 /roles/linux_status/handlers
parentadd input variables to role's defaults/ (diff)
downloadinfra-ansible-42c8f3dd27d3c2bc7da958de11e3fb10bb5b082c.tar.gz
infra-ansible-42c8f3dd27d3c2bc7da958de11e3fb10bb5b082c.zip
linux_status: disable power management before starting the service
Diffstat (limited to '')
-rw-r--r--roles/linux_status/handlers/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/linux_status/handlers/main.yml b/roles/linux_status/handlers/main.yml
new file mode 100644
index 0000000..0ea529f
--- /dev/null
+++ b/roles/linux_status/handlers/main.yml
@@ -0,0 +1,7 @@
+- name: Restart linux-status
+ become: true
+ ansible.builtin.systemd_service:
+ daemon_reload: true
+ name: linux-status
+ state: restarted
+ listen: linux_status_restart