Fix postfixadmin user bootstrap
This commit is contained in:
parent
d982f55dbf
commit
ce3be7d99e
3 changed files with 7 additions and 7 deletions
roles
|
@ -1,10 +1,8 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: install packages
|
- name: install packages
|
||||||
apt:
|
ansible.builtin.apt:
|
||||||
name: "{{ item }}"
|
name:
|
||||||
state: present
|
- postfix
|
||||||
loop:
|
- postfix-mysql
|
||||||
- postfix
|
- mailutils
|
||||||
- postfix-mysql
|
|
||||||
- mailutils
|
|
||||||
|
|
|
@ -49,5 +49,6 @@
|
||||||
password2: '{{ postfixadmin_bootstrap_admin_password }}'
|
password2: '{{ postfixadmin_bootstrap_admin_password }}'
|
||||||
submit: 'Add Admin'
|
submit: 'Add Admin'
|
||||||
return_content: yes
|
return_content: yes
|
||||||
|
register: postfixadmin_register_boostrap_create_admin
|
||||||
changed_when: yes
|
changed_when: yes
|
||||||
failed_when: '"Admin addition failed" in postfixadmin_register_boostrap_create_admin.content or postfixadmin_register_boostrap_create_admin.status != 200'
|
failed_when: '"Admin addition failed" in postfixadmin_register_boostrap_create_admin.content or postfixadmin_register_boostrap_create_admin.status != 200'
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
- php-imap
|
- php-imap
|
||||||
- php-mysql
|
- php-mysql
|
||||||
- php-mbstring
|
- php-mbstring
|
||||||
|
- python3-pymysql # required by ansible
|
||||||
|
|
||||||
- name: create postfixadmin installation directory
|
- name: create postfixadmin installation directory
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue