Erstelle dehydrated-Rolle

This commit is contained in:
phil 2022-12-26 12:25:32 +01:00
commit 7f20b08e37
8 changed files with 41 additions and 0 deletions

5
README.md Normal file
View file

@ -0,0 +1,5 @@
Dehydrated
==========
Diese Rolle installiert [dehydrated](https://dehydrated.io/), akzeptiert die TOS und erstellt eine `domains.txt`.
Sie ist zur Verwendung in anderen playbooks gedacht.

2
defaults/main.yml Normal file
View file

@ -0,0 +1,2 @@
---
# defaults file for roles/dehydrated

2
handlers/main.yml Normal file
View file

@ -0,0 +1,2 @@
---
# handlers file for roles/dehydrated

10
meta/main.yml Normal file
View file

@ -0,0 +1,10 @@
galaxy_info:
author: systemausfall.org
description: Installation und Ersteinrichtung von dehydrated
company: Sense.Lab e.V.
license: GPLv3
min_ansible_version: "2.9"
platforms:
- name: Debian
versions:
- bullseye

9
tasks/dehydrated.yml Normal file
View file

@ -0,0 +1,9 @@
---
- name: "dehydrated | Akzeptiere LE TOS"
ansible.builtin.command: dehydrated --register --accept-terms
- name: "dehydrated | Erstelle domains.txt"
ansible.builtin.file:
path: /etc/dehydrated/domains.txt
state: touch
mode: 0644

6
tasks/main.yml Normal file
View file

@ -0,0 +1,6 @@
---
- import_tasks: packages.yml
tags: packages
- import_tasks: dehydrated.yml
tags: dehydrated

5
tasks/packages.yml Normal file
View file

@ -0,0 +1,5 @@
---
- name: packages | Installiere deb-Pakete
ansible.builtin.apt:
pkg:
- dehydrated

2
vars/main.yml Normal file
View file

@ -0,0 +1,2 @@
---
# vars file for roles/dehydrated