Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration paradox #15

Open
sspreitzer opened this issue Nov 20, 2020 · 7 comments
Open

Configuration paradox #15

sspreitzer opened this issue Nov 20, 2020 · 7 comments
Assignees

Comments

@sspreitzer
Copy link

This role introduces a paradox.

  • The daemon can not be started if the configuration is not valid for the system
  • The role can not change the daemon configuration unless the daemon is started

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

  • Eg. system has ipv6 disabled but localhost in /etc/hosts is 127.0.0.1 and ::1. postfix will not start as it can not bind to ::1

Please solve the configuration paradox.

@sspreitzer
Copy link
Author

sspreitzer commented Nov 20, 2020

Can be solved by invoking postconf prior service start.

@richm
Copy link
Contributor

richm commented Nov 23, 2020

patches welcome

@sspreitzer
Copy link
Author

Okay, I will put it on my todo list

@sspreitzer
Copy link
Author

@richm you can assign the issue to me

@scrubby
Copy link

scrubby commented Feb 7, 2024

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

@richm
Copy link
Contributor

richm commented Feb 7, 2024

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

No updates - PRs/patches welcome

@scrubby
Copy link

scrubby commented Feb 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants