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