Allow user to provide a different configuration per host

This commit is contained in:
Oliver Traber 2024-05-27 20:57:26 +02:00
parent 82d5350ded
commit d8113f6228
Signed by: Bluemedia
GPG key ID: C0674B105057136C
10 changed files with 238 additions and 30 deletions

View file

@ -15,6 +15,8 @@
- build-essential
- cmake
- meson
# hyprland-scanner
- libpugixml-dev
# hyprcursor
- libzip-dev
- librsvg2-dev
@ -22,8 +24,10 @@
# Hyprland
- libpango1.0-dev
- libtomlplusplus-dev
- uuid-dev
# xdg-desktop-portal-hyprland
- qtbase5-dev
#- qtbase5-dev
- qt6-base-dev
- libspa-0.2-dev
- libpipewire-0.3-dev
@ -35,16 +39,25 @@
owner: "{{ ansible_user_id }}"
group: "{{ ansible_user_id }}"
loop:
- "hyprwayland-scanner"
- "Hyprland"
- "hyprlang"
- "hyprcursor"
- "xdg-desktop-portal-hyprland"
- name: Checkout hyprwayland-scanner repo
ansible.builtin.git:
repo: 'https://github.com/hyprwm/hyprwayland-scanner.git'
dest: /usr/local/src/hyprwayland-scanner
version: v0.3.4
force: true
recursive: true
- name: Checkout Hyprland repo
ansible.builtin.git:
repo: 'https://github.com/hyprwm/Hyprland.git'
dest: /usr/local/src/Hyprland
version: v0.39.1
version: v0.40.0
force: true
recursive: true
@ -68,10 +81,24 @@
ansible.builtin.git:
repo: 'https://github.com/hyprwm/xdg-desktop-portal-hyprland.git'
dest: /usr/local/src/xdg-desktop-portal-hyprland
version: v1.3.1
version: master
force: true
recursive: true
- name: Build hyprwayland-scanner
ansible.builtin.command:
cmd: "{{ item }}"
chdir: /usr/local/src/hyprwayland-scanner
loop:
- "cmake -DCMAKE_INSTALL_PREFIX=/usr -B build"
- "cmake --build build"
- name: Install hyprwayland-scanner
become: yes
ansible.builtin.command:
cmd: "cmake --install build"
chdir: /usr/local/src/hyprwayland-scanner
- name: Build hyprlang
ansible.builtin.command:
cmd: "{{ item }}"
@ -134,4 +161,4 @@
- name: Reload systemd
ansible.builtin.systemd_service:
daemon_reload: true
scope: user
scope: user