ansible-desktop/roles/laptop/tasks/supergfxctl.yml
2022-07-25 21:41:37 +02:00

33 lines
641 B
YAML

- 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