You've already forked role_stubby
feat: Add compatibility with CoreOS
This commit is contained in:
9
tasks/configuration.yml
Normal file
9
tasks/configuration.yml
Normal 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
|
7
tasks/installation-apt.yml
Normal file
7
tasks/installation-apt.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
# tasks file for stubby
|
||||
|
||||
- name: Install stubby
|
||||
ansible.builtin.apt:
|
||||
name: stubby
|
||||
become: true
|
18
tasks/installation-atomic_container.yml
Normal file
18
tasks/installation-atomic_container.yml
Normal 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
|
@@ -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
|
||||
|
Reference in New Issue
Block a user