Add tasks for making asusctl and superfgxctl
This commit is contained in:
parent
1fa37669af
commit
a51cb3f5d8
33
roles/laptop/tasks/asusctl.yml
Normal file
33
roles/laptop/tasks/asusctl.yml
Normal file
@ -0,0 +1,33 @@
|
||||
- name: install required packages for asusctl
|
||||
become: yes
|
||||
apt:
|
||||
update_cache: yes
|
||||
pkg:
|
||||
- rust-all
|
||||
- libclang-dev
|
||||
- libudev-dev
|
||||
- make
|
||||
|
||||
- name: checkout asusctl repo
|
||||
git:
|
||||
repo: "{{ asusctl.repo }}"
|
||||
dest: "{{ ansible_user_dir }}/src/asusctl"
|
||||
clone: yes
|
||||
update: yes
|
||||
|
||||
- name: build asusctl
|
||||
make:
|
||||
chdir: "{{ ansible_user_dir }}/src/asusctl"
|
||||
|
||||
- name: install asusctl
|
||||
become: yes
|
||||
make:
|
||||
chdir: "{{ ansible_user_dir }}/src/asusctl"
|
||||
target: install
|
||||
|
||||
- name: "Enable service"
|
||||
ansible.builtin.systemd:
|
||||
become: yes
|
||||
name: asusctl
|
||||
state: started
|
||||
enabled: yes
|
@ -1 +1,5 @@
|
||||
- import_tasks: battery.yml
|
||||
|
||||
- import_tasks: asusctl.yml
|
||||
|
||||
- import_tasks: supergfxctl.yml
|
||||
|
33
roles/laptop/tasks/supergfxctl.yml
Normal file
33
roles/laptop/tasks/supergfxctl.yml
Normal file
@ -0,0 +1,33 @@
|
||||
- name: install required packages for supergfxctl
|
||||
become: yes
|
||||
apt:
|
||||
update_cache: yes
|
||||
pkg:
|
||||
- curl
|
||||
- git
|
||||
- build-essential
|
||||
- make
|
||||
|
||||
- name: checkout supergfxctl repo
|
||||
git:
|
||||
repo: "{{ asusctl.repo }}"
|
||||
dest: "{{ ansible_user_dir }}/src/supergfxctl"
|
||||
clone: yes
|
||||
update: yes
|
||||
|
||||
- name: build asusctl
|
||||
make:
|
||||
chdir: "{{ ansible_user_dir }}/src/supergfxctl"
|
||||
|
||||
- name: install asusctl
|
||||
become: yes
|
||||
make:
|
||||
chdir: "{{ ansible_user_dir }}/src/supergfxctl"
|
||||
target: install
|
||||
|
||||
- name: "Enable service"
|
||||
ansible.builtin.systemd:
|
||||
become: yes
|
||||
name: asusctl
|
||||
state: started
|
||||
enabled: yes
|
4
roles/laptop/vars/main.yml
Normal file
4
roles/laptop/vars/main.yml
Normal file
@ -0,0 +1,4 @@
|
||||
asusctl:
|
||||
repo: https://gitlab.com/asus-linux/asusctl.git
|
||||
supergfxctl:
|
||||
repo: https://gitlab.com/asus-linux/supergfxctl.git
|
Loading…
Reference in New Issue
Block a user