aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/roles/linux_status/tasks/main.yml
blob: 8d6595c862330d6bf275c05a213d1edabaf856cf (plain) (tree)
1
2
3
4
5
6
7
8
                         
                               
                 




                                                     





                             


                                             

                               

                              


                                                                         
- name: Set up repository
  ansible.builtin.include_role:
    name: apt_ppa
  vars:
    ppa_owner: egor-tensin
    ppa_name: linux-status
    ppa_distro: focal
    ppa_key: ecb69cbafc6d7cd8bd67ec35b1089b3051c9384d

- name: Install linux-status
  become: true
  ansible.builtin.apt:
    install_recommends: false
    name: linux-status

- name: Disable power management
  when: linux_status_disable_power_management
  ansible.builtin.include_role:
    name: systemd_edit
  vars:
    service_name: linux-status
    service_section: Service
    service_option: ExecStart
    service_values: ['', '/usr/bin/python3 -B server.py --disable-power']