From 9bf0abd3e5c626d583a9b3aa6a417b2bdfef3d61 Mon Sep 17 00:00:00 2001 From: genofire Date: Tue, 21 Jul 2020 02:29:22 +0200 Subject: [PATCH] meta: add webserver dep --- meta/main.yml | 2 ++ tasks/db.yml | 6 ++++++ tasks/main.yml | 18 ++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 meta/main.yml diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..ba5c05a --- /dev/null +++ b/meta/main.yml @@ -0,0 +1,2 @@ +dependencies: +- role: webserver diff --git a/tasks/db.yml b/tasks/db.yml index e69de29..aae820c 100644 --- a/tasks/db.yml +++ b/tasks/db.yml @@ -0,0 +1,6 @@ +- name: package + package: + name: + - postgresql + - postfixadmin + - php-fpm diff --git a/tasks/main.yml b/tasks/main.yml index c7d4cb2..05f300a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,3 +1,21 @@ +--- +- name: create vmail group + group: + name: vmail + gid: 5000 + state: present + system: yes + +- name: create vmail user + user: + name: vmail + uid: 5000 + group: vmail + state: present + system: yes + shell: /usr/bin/nologin + home: /srv/mail + - name: Run userdatabase import_tasks: db.yml