feat(yggdrasil): add support for Chimera Linux

This commit is contained in:
Jan Christian Grünhage 2024-08-19 17:24:20 +02:00
parent a49cf83672
commit 5e5cc9f735
No known key found for this signature in database
GPG key ID: EEC1170CE56FA2ED
4 changed files with 34 additions and 0 deletions

View file

@ -14,3 +14,13 @@
state: restarted
when: ansible_os_family in ["Void"]
listen: "restart_yggdrasil"
- name: Restart yggdrasil using dinit
ansible.builtin.command:
argv:
- dinitctl
- --system
- restart
- yggdrasil
when: ansible_os_family in ["Chimera"]
listen: "restart_yggdrasil"

View file

@ -14,3 +14,15 @@
enabled: true
state: started
when: ansible_os_family in ["Void"]
# This separate entry here is needed because
# the service module does not support dinit
- name: Start yggdrasil
ansible.builtin.command:
argv:
- /usr/bin/dinitctl
- --system
- enable
- yggdrasil
creates: /etc/dinit.d/boot.d/yggdrasil
when: ansible_os_family in ["Chimera"]

View file

@ -15,4 +15,8 @@
ansible.builtin.import_tasks: install/arch.yml
when: ansible_os_family in ["Archlinux"]
- name: Import chimera tasks
ansible.builtin.import_tasks: install/chimera.yml
when: ansible_os_family in ["Chimera"]
# TODO: Support more distros (and maybe even Windows one day)

View file

@ -0,0 +1,8 @@
---
- name: Install yggdrasil
community.general.apk:
name: yggdrasil
register: task_result
until: task_result is success
retries: 3
delay: 2