Compare commits
2 Commits
1fa37669af
...
16ffbf069f
Author | SHA1 | Date | |
---|---|---|---|
|
16ffbf069f | ||
|
a51cb3f5d8 |
@ -1,15 +1,16 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- dwm
|
||||
- ubuntu
|
||||
- firefox
|
||||
- docker
|
||||
- dotfiles
|
||||
- java
|
||||
- jetbrains
|
||||
- compton
|
||||
# - dwm
|
||||
# - ubuntu
|
||||
# - firefox
|
||||
# - docker
|
||||
# - dotfiles
|
||||
# - java
|
||||
# - jetbrains
|
||||
# - compton
|
||||
- signal
|
||||
- virtual
|
||||
- lutris
|
||||
- prusa-slicer
|
||||
# - virtual
|
||||
# - lutris
|
||||
# - prusa-slicer
|
||||
# - laptop
|
||||
|
@ -7,6 +7,7 @@
|
||||
- git
|
||||
- make
|
||||
- fonts-firacode
|
||||
- fonts-symbola
|
||||
- libharfbuzz-dev
|
||||
|
||||
- name: create src dir
|
||||
|
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