Giter Site home page Giter Site logo

linux-system-roles / postfix Goto Github PK

View Code? Open in Web Editor NEW
13.0 5.0 19.0 172 KB

An ansible role which configures postfix

Home Page: https://linux-system-roles.github.io/postfix/

License: GNU General Public License v3.0

Jinja 4.30% JavaScript 9.14% HTML 76.21% Shell 10.36%

postfix's People

Contributors

dependabot[bot] avatar kyleabenson avatar larskarlitski avatar mcenirm avatar nhosoi avatar pcahyna avatar richm avatar spetrosi avatar tyll avatar ukulekek avatar vcrhonek avatar yarda avatar yontalcar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

postfix's Issues

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

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:

  • => linux-system-roles.postfix : Configure Postfix
  • => linux-system-roles.postfix : Configure Postfix
  • => linux-system-roles.postfix : Configure Postfix

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

Configuration paradox

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.

Conscious Language: Please rename master branch to main branch

As part of the conscious language project, the master branch is to be renamed to the main branch.

Here are the instructions.

  1. Rename the master branch to main: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch
  2. Check this to ensure the default branch has been changed to main: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch - this should keep the github history, as well as updating the default branch configuration and updating any existing PRs

If you use the gh cli (highly recommended) you can use this to check which repos need to be updated:

gh repo list linux-system-roles -L 100 --json name,defaultBranchRef --source | \
  jq --raw-output '.[] | select(.defaultBranchRef.name == "master") | .name'

Thanks.

role is not idempotent

we run the role in regular intervals and with each invocation /etc/postfix/main.cf is changed with

# Last modified: {{ ansible_date_time.date }}

this behavior was removed from {{ ansible_managed }} and now re-introduced with a separate task.

ansible-lint reports errors

--> Executing Ansible Lint on postfix/tests/tests_default.yml...
[ANSIBLE0010] Package installs should not use latest
postfix/tests/roles/linux-system-roles.postfix/tasks/main.yml:2
Task/Handler: Install Postfix

[ANSIBLE0013] Use shell only when shell functionality is required
postfix/tests/roles/linux-system-roles.postfix/tasks/main.yml:8
Task/Handler: Backup configuration

[ANSIBLE0012] Commands should not change things if nothing needs doing
postfix/tests/roles/linux-system-roles.postfix/tasks/main.yml:28
Task/Handler: Configure Postfix

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.