From 7f20b08e37e27015c10cf00de558c0ab438e0c7b Mon Sep 17 00:00:00 2001 From: phil Date: Mon, 26 Dec 2022 12:25:32 +0100 Subject: [PATCH] Erstelle dehydrated-Rolle --- README.md | 5 +++++ defaults/main.yml | 2 ++ handlers/main.yml | 2 ++ meta/main.yml | 10 ++++++++++ tasks/dehydrated.yml | 9 +++++++++ tasks/main.yml | 6 ++++++ tasks/packages.yml | 5 +++++ vars/main.yml | 2 ++ 8 files changed, 41 insertions(+) create mode 100644 README.md create mode 100644 defaults/main.yml create mode 100644 handlers/main.yml create mode 100644 meta/main.yml create mode 100644 tasks/dehydrated.yml create mode 100644 tasks/main.yml create mode 100644 tasks/packages.yml create mode 100644 vars/main.yml diff --git a/README.md b/README.md new file mode 100644 index 0000000..b864988 --- /dev/null +++ b/README.md @@ -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. diff --git a/defaults/main.yml b/defaults/main.yml new file mode 100644 index 0000000..73eac85 --- /dev/null +++ b/defaults/main.yml @@ -0,0 +1,2 @@ +--- +# defaults file for roles/dehydrated diff --git a/handlers/main.yml b/handlers/main.yml new file mode 100644 index 0000000..e6d495c --- /dev/null +++ b/handlers/main.yml @@ -0,0 +1,2 @@ +--- +# handlers file for roles/dehydrated diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..582b44c --- /dev/null +++ b/meta/main.yml @@ -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 diff --git a/tasks/dehydrated.yml b/tasks/dehydrated.yml new file mode 100644 index 0000000..a47fee0 --- /dev/null +++ b/tasks/dehydrated.yml @@ -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 diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..9436627 --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,6 @@ +--- +- import_tasks: packages.yml + tags: packages + +- import_tasks: dehydrated.yml + tags: dehydrated diff --git a/tasks/packages.yml b/tasks/packages.yml new file mode 100644 index 0000000..af8db83 --- /dev/null +++ b/tasks/packages.yml @@ -0,0 +1,5 @@ +--- +- name: packages | Installiere deb-Pakete + ansible.builtin.apt: + pkg: + - dehydrated diff --git a/vars/main.yml b/vars/main.yml new file mode 100644 index 0000000..29a2eaa --- /dev/null +++ b/vars/main.yml @@ -0,0 +1,2 @@ +--- +# vars file for roles/dehydrated