From: Jakub Czajka Date: Wed, 27 Sep 2023 21:06:52 +0000 (+0200) Subject: Add a script for configuring server's services. X-Git-Url: https://git.ekhem.eu.org/?a=commitdiff_plain;h=d2105002e5784349bff7901054fdad758780f0ef;p=turnup.git Add a script for configuring server's services. --- diff --git a/server.yaml b/server.yaml new file mode 100644 index 0000000..c4e44d8 --- /dev/null +++ b/server.yaml @@ -0,0 +1,18 @@ +# Copyright (c) 2023 Jakub Czajka +# License: GPL-3.0 or later. + +- hosts: servers + tasks: + - name: Install {{ item }} + include_tasks: "server/{{ item }}.yaml" + with_items: + - dovecot + - fail2ban + - git + - opendkim + - matrix + - nginx + - postgres + - postfix + - websites + - sshd diff --git a/turnup.yaml b/turnup.yaml index 2942283..691a5b5 100644 --- a/turnup.yaml +++ b/turnup.yaml @@ -24,3 +24,6 @@ key: "{{ lookup('file', '{{ key_file }}') }}" with_items: "{{ files }}" when: "(item.dest + '/' + item.name) is not exists" + +- name: Deploy server + import_playbook: server.yaml