mirror of
https://github.com/famedly/ansible-collection-network
synced 2024-11-10 06:04:17 +00:00
feat(yggdrasil): add support for Chimera Linux
This commit is contained in:
parent
a49cf83672
commit
5e5cc9f735
4 changed files with 34 additions and 0 deletions
|
@ -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"
|
||||
|
|
|
@ -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"]
|
||||
|
|
|
@ -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)
|
||||
|
|
8
roles/yggdrasil/tasks/install/chimera.yml
Normal file
8
roles/yggdrasil/tasks/install/chimera.yml
Normal 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
|
Loading…
Reference in a new issue