aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/linux_status/tasks
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-10-25 01:08:57 +0300
committerEgor Tensin <egor@tensin.name>2026-10-25 01:08:57 +0300
commit8e46c54ccf40a18606cec2f3909a7320f375e760 (patch)
tree2c79ede6ab4481664bfe17f59ca4d3e6a80c6a2e /roles/linux_status/tasks
parentv8.1.0 (diff)
downloadinfra-ansible-8e46c54ccf40a18606cec2f3909a7320f375e760.tar.gz
infra-ansible-8e46c54ccf40a18606cec2f3909a7320f375e760.zip
reorder fields & other linting
Diffstat (limited to 'roles/linux_status/tasks')
-rw-r--r--roles/linux_status/tasks/arch.yml4
-rw-r--r--roles/linux_status/tasks/default.yml4
-rw-r--r--roles/linux_status/tasks/power_management.yml8
3 files changed, 8 insertions, 8 deletions
diff --git a/roles/linux_status/tasks/arch.yml b/roles/linux_status/tasks/arch.yml
index b894361..693f6f2 100644
--- a/roles/linux_status/tasks/arch.yml
+++ b/roles/linux_status/tasks/arch.yml
@@ -1,6 +1,6 @@
- name: Install linux-status
- ansible.builtin.include_role:
- name: aur_install
vars:
aur_install_packages:
- linux-status
+ ansible.builtin.include_role:
+ name: aur_install
diff --git a/roles/linux_status/tasks/default.yml b/roles/linux_status/tasks/default.yml
index fc2f83f..6606868 100644
--- a/roles/linux_status/tasks/default.yml
+++ b/roles/linux_status/tasks/default.yml
@@ -1,10 +1,10 @@
- name: Set up PPA repository
- ansible.builtin.include_role:
- name: ppa
vars:
ppa_owner: egor-tensin
ppa_name: linux-status
ppa_key: ecb69cbafc6d7cd8bd67ec35b1089b3051c9384d
+ ansible.builtin.include_role:
+ name: ppa
- name: Install linux-status
become: true
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