Fix postfixadmin user bootstrap

This commit is contained in:
s3lph 2021-11-05 00:30:33 +01:00
parent d982f55dbf
commit ce3be7d99e
3 changed files with 7 additions and 7 deletions
roles
postfix/tasks
postfixadmin/tasks

View file

@ -1,10 +1,8 @@
---
- name: install packages
apt:
name: "{{ item }}"
state: present
loop:
- postfix
- postfix-mysql
- mailutils
ansible.builtin.apt:
name:
- postfix
- postfix-mysql
- mailutils

View file

@ -49,5 +49,6 @@
password2: '{{ postfixadmin_bootstrap_admin_password }}'
submit: 'Add Admin'
return_content: yes
register: postfixadmin_register_boostrap_create_admin
changed_when: yes
failed_when: '"Admin addition failed" in postfixadmin_register_boostrap_create_admin.content or postfixadmin_register_boostrap_create_admin.status != 200'

View file

@ -6,6 +6,7 @@
- php-imap
- php-mysql
- php-mbstring
- python3-pymysql # required by ansible
- name: create postfixadmin installation directory
ansible.builtin.file: