linux-system-roles / postfix

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

Configuration paradox #15

Open sspreitzer opened 3 years ago

sspreitzer commented 3 years ago

This role introduces a paradox.

There are unknown cases in which by external dependencies the configuration is inapplicable.

Please solve the configuration paradox.

sspreitzer commented 3 years ago

Can be solved by invoking postconf prior service start.

richm commented 3 years ago

patches welcome

sspreitzer commented 3 years ago

Okay, I will put it on my todo list

sspreitzer commented 3 years ago

@richm you can assign the issue to me

scrubby commented 4 months ago

Any updates about this paradox? I'm running into myself as well.

richm commented 4 months ago

Any updates about this paradox? I'm running into myself as well.

No updates - PRs/patches welcome

scrubby commented 4 months ago

Wouldn't the fix be as simple as splitting the enable service and the start service? So in the main.yml change this

- name: Enable Postfix
  service:
    name: postfix
    state: started
    enabled: true

To this

- name: Enable Postfix
  service:
    name: postfix
    enabled: true

And then in the end of the file, in case it's run without applying a custom conf>

- name: Enable Postfix
  service:
    name: postfix
    state: started