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

First commits for an Ansible role to install and configure systemd-resolved #1

Merged
merged 19 commits into from
May 8, 2024

Commits on May 3, 2024

  1. Configuration menu
    Copy the full SHA
    0ed1222 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f46fafb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d66b1e1 View commit details
    Browse the repository at this point in the history
  4. Remove support for Debian Buster and Bullseye as well as Ubuntu Focal…

    … and Jammy
    
    These platforms do not provide systemd-resolved.
    jsf9k committed May 3, 2024
    Configuration menu
    Copy the full SHA
    449d1ee View commit details
    Browse the repository at this point in the history
  5. Add code to unmount /etc/resolv.conf in Molecule prepare stage

    Docker bind mounts a file from the host to /etc/resolv.conf.  This is
    inconvenient for us, since we need to create a symlink at
    /etc/resolv.conf.  At the same time, we don't want to break DNS.  The
    playbook being imported contains a workaround for this situation.
    jsf9k committed May 3, 2024
    Configuration menu
    Copy the full SHA
    0906cb6 View commit details
    Browse the repository at this point in the history
  6. Enable and start systemd-resolved sooner

    We must start the service to populate the files in
    /run/systemd/resolve/, before we can create the /etc/resolv.conf.
    jsf9k committed May 3, 2024
    Configuration menu
    Copy the full SHA
    d1decf5 View commit details
    Browse the repository at this point in the history
  7. Comment out call to Service.exists

    This functionality from pytest-testinfra is currently broken.  See
    pytest-dev/pytest-testinfra#757 for more details.  Once
    pytest-dev/pytest-testinfra#754 has been merged and a new release of
    pytest-testinfra is created the Service.exists line can be restored.
    jsf9k committed May 3, 2024
    Configuration menu
    Copy the full SHA
    1b662af View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2c76623 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    69ab2cd View commit details
    Browse the repository at this point in the history
  10. Use a different symlink target for AmazonLinux2023

    /run/systemd/resolve/stub-resolv.conf is a symlink to
    /run/systemd/resolve/resolv.conf in AL2023, so in this case the
    /etc/resolv.conf symlink resolves to the former not the latter.
    jsf9k committed May 3, 2024
    Configuration menu
    Copy the full SHA
    c3d2e0f View commit details
    Browse the repository at this point in the history
  11. Add ansible as a dependency for the ansible-lint pre-commit hook

    For some reason ansible-lint does not know about the existence of
    ansible.posix.mount unless ansible itself is added as an extra
    dependency.  I believe this is because ansible is not installed when
    ansible-lint is installed.
    jsf9k committed May 3, 2024
    Configuration menu
    Copy the full SHA
    53a6447 View commit details
    Browse the repository at this point in the history
  12. Add a comment

    The comment explains why ansible must be added as an additional
    dependency for the ansible-lint linter.
    
    Co-authored-by: dav3r <[email protected]>
    jsf9k and dav3r committed May 3, 2024
    Configuration menu
    Copy the full SHA
    c4af931 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    9a69c22 View commit details
    Browse the repository at this point in the history
  14. Verify the systemd-resolved stub resolver is being used by default

    Note that this entails installing dnsutils in the Molecule prepare
    stage so that dig is available when the Molecule tests are run.
    jsf9k committed May 3, 2024
    Configuration menu
    Copy the full SHA
    626d43f View commit details
    Browse the repository at this point in the history
  15. Separate tasks with a blank line

    Co-authored-by: Nick <[email protected]>
    jsf9k and mcdonnnj committed May 3, 2024
    Configuration menu
    Copy the full SHA
    9a51c3a View commit details
    Browse the repository at this point in the history
  16. Expand comment describing why we use follow=false

    Co-authored-by: Nick <[email protected]>
    jsf9k and mcdonnnj committed May 3, 2024
    Configuration menu
    Copy the full SHA
    32e1a61 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    a68a9b5 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    f3c1b2f View commit details
    Browse the repository at this point in the history

Commits on May 8, 2024

  1. Correct comment

    Co-authored-by: Nick <[email protected]>
    jsf9k and mcdonnnj authored May 8, 2024
    Configuration menu
    Copy the full SHA
    a3eeb16 View commit details
    Browse the repository at this point in the history