feat: Add compatibility with CoreOS

This commit is contained in:
2025-03-30 07:52:28 +02:00
parent d1e61dd46e
commit 4105d5f2ec
7 changed files with 69 additions and 27 deletions

9
tasks/configuration.yml Normal file
View File

@@ -0,0 +1,9 @@
---
# tasks file for stubby
- name: Configurer stubby
ansible.builtin.template:
src: stubby.yml.j2
dest: /etc/stubby/stubby.yml
become: true
notify: Restart stubby.service

View File

@@ -0,0 +1,7 @@
---
# tasks file for stubby
- name: Install stubby
ansible.builtin.apt:
name: stubby
become: true

View File

@@ -0,0 +1,18 @@
---
# tasks file for borgmatic
- name: Install stubby
ansible.builtin.command:
argv:
- /usr/bin/rpm-ostree
- install
- --allow-inactive
- --assumeyes
- --idempotent
- stubby
creates: /sysroot/ostree/repo/refs/heads/rpmostree/pkg/stubby
become: true
notify: Apply installation
- name: Flush handlers
meta: flush_handlers

View File

@@ -1,14 +1,10 @@
---
# tasks file for stubby
- name: Installer stubby
ansible.builtin.apt:
name: stubby
become: true
- name: Include installation tasks
ansible.builtin.include_tasks:
file: installation-{{ ansible_facts['pkg_mgr'] }}.yml
- name: Configurer stubby
ansible.builtin.template:
src: stubby.yml.j2
dest: /etc/stubby/stubby.yml
become: true
notify: Redémarrer stubby.service
- name: Import configuration tasks
ansible.builtin.import_tasks:
file: configuration.yml