feat: Create role

This commit is contained in:
2023-05-17 13:49:56 +02:00
committed by pulsar89.5
parent ddb7a1a06a
commit 93311b6361
8 changed files with 97 additions and 3 deletions

9
tasks/configuration.yml Normal file
View File

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

7
tasks/installation.yml Normal file
View File

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

10
tasks/main.yml Normal file
View File

@@ -0,0 +1,10 @@
---
# tasks file for stubby
- name: Include installation tasks
ansible.builtin.import_tasks:
file: installation.yml
- name: Import configuration tasks
ansible.builtin.import_tasks:
file: configuration.yml