linux-system-roles / postfix

An ansible role which configures postfix
https://linux-system-roles.github.io/postfix/
GNU General Public License v3.0
14 stars 20 forks source link

Molecule idempotence test fails on linux-system-roles.postfix : Configure Postfix #27

Closed girishpatil1386 closed 3 years ago

girishpatil1386 commented 3 years ago

I'm wrapping your role in our's, to install and configure postfix. Molecule idempotence test fails on the Configure Postfix.

CRITICAL Idempotence test failed because of the following tasks:

I believe adding a tags: molecule-idempotence-notest on Postfix Configure task should fix the test

richm commented 3 years ago

which version of the postfix role are you running? Which version of docker are you using? did you make any modifications to the molecule configuration? The reason I ask is because the molecule tests fail for me like this:

TASK [linux-system-roles.postfix : Enable Postfix] *****************************
changed: [centos-6]
fatal: [centos-8]: FAILED! => {"changed": false, "cmd": "/usr/bin/systemctl", "msg": "Failed to connect to bus: No such file or directory", "rc": 1, "stderr": "Failed to connect to bus: No such file or directory\n", "stderr_lines": ["Failed to connect to bus: No such file or directory"], "stdout": "", "stdout_lines": []}
fatal: [centos-7]: FAILED! => {"changed": false, "cmd": "/usr/bin/systemctl", "msg": "Failed to get D-Bus connection: No such file or directory", "rc": 1, "stderr": "Failed to get D-Bus connection: No such file or directory\n", "stderr_lines": ["Failed to get D-Bus connection: No such file or directory"], "stdout": "", "stdout_lines": []}

at any rate, I thought the idempotency issue was fixed by this: https://github.com/linux-system-roles/postfix/commit/14314822b529520ac12964e0d2938c4bb18ab895 ensure role is idempotent ?

girishpatil1386 commented 3 years ago

$ cat meta/main.yml dependencies:

$ podman --version podman version 3.0.2-dev

$ ansible --version ansible [core 2.11.1]

richm commented 3 years ago

Ok - looks like there was a problem with importing the postfix role into Galaxy - but that is now fixed - version 1.0.0 of the role should be idempotent - https://galaxy.ansible.com/linux-system-roles/postfix