Skip to content

Use Ansible 13 - #43

Open
StykMartin wants to merge 9 commits into
masterfrom
wip/mstyk/2.20
Open

StykMartin wants to merge 9 commits into
masterfrom
wip/mstyk/2.20

Conversation

@StykMartin

Copy link
Copy Markdown
Collaborator

No description provided.

@StykMartin
StykMartin force-pushed the wip/mstyk/2.20 branch 3 times, most recently from dc3b424 to 5848fe6 Compare March 17, 2026 17:25
@StykMartin StykMartin changed the title Port to Ansible 13 Use Ansible 13 Mar 17, 2026
@StykMartin
StykMartin force-pushed the wip/mstyk/2.20 branch 13 times, most recently from 680b14f to 61cb276 Compare March 17, 2026 18:57
Signed-off-by: Martin Styk <mart.styk@gmail.com>
Signed-off-by: Martin Styk <mart.styk@gmail.com>
Signed-off-by: Martin Styk <mart.styk@gmail.com>
Signed-off-by: Martin Styk <mart.styk@gmail.com>
Signed-off-by: Martin Styk <mart.styk@gmail.com>
Signed-off-by: Martin Styk <mart.styk@gmail.com>
Signed-off-by: Martin Styk <mart.styk@gmail.com>
DEFAULT_MANAGED_STR in ansible.cfg is deprecated in
ansible-core 2.20. Set it as a regular variable instead.

Signed-off-by: Martin Styk <mart.styk@gmail.com>
Signed-off-by: Martin Styk <mart.styk@gmail.com>
@StykMartin
StykMartin marked this pull request as ready for review March 17, 2026 19:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the infrastructure Ansible codebase to align with “Ansible 13” expectations by modernizing module usage (FQCN), refreshing dependency/config layout, and adding Molecule-based CI coverage.

Changes:

  • Switch playbooks/roles to use ansible.builtin.* FQCNs and remove legacy/obsolete tasks and the Mitogen strategy shim.
  • Introduce Molecule scenarios (role + smoke) and GitHub Actions workflows to run Molecule and ansible-lint in CI.
  • Restructure dependency management to include required collections and install external Galaxy roles into .external_roles.

Reviewed changes

Copilot reviewed 16 out of 18 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
roles/base/tasks/main.yml Uses FQCN for built-in modules, removes legacy tasks, and normalizes some task naming.
roles/base/handlers/main.yml Updates handler to use FQCN and explicit change reporting.
roles/base/molecule/default/molecule.yml Adds Molecule scenario for the base role using Docker.
roles/base/molecule/default/converge.yml Adds converge play for the base role scenario.
roles/base/molecule/default/verify.yml Adds verification assertions for key base role outcomes.
molecule/smoke/molecule.yml Adds Docker-based Molecule “smoke” scenario configuration.
molecule/smoke/converge.yml Adds smoke scenario converge play running multiple roles.
.github/workflows/molecule.yml Adds CI workflow to run Molecule role tests and smoke tests.
.github/workflows/ansiblelint.yml Updates CI lint workflow steps and installs collections/roles via Galaxy.
requirements.yml Splits Galaxy dependencies into collections + roles.
requirements.txt Updates Python deps to use ansible-core and a newer ansible-lint.
ansible.cfg Simplifies config and updates roles_path for .external_roles.
group_vars/all/main.yml Adds global ansible_managed string.
.ansible-lint Excludes .external_roles and updates skip-list settings.
playbooks/web.yml Converts tasks to FQCN and normalizes some package states.
playbooks/mail.yml Converts include_role usage to FQCN.
.gitignore Updates note about external roles (but does not yet ignore .external_roles).
plugins/strategy/mitogen_linear.py Removes the Mitogen strategy proxy module.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread roles/base/tasks/main.yml Resolved
Comment thread ansible.cfg Resolved
@StykMartin

Copy link
Copy Markdown
Collaborator Author

@duck-rh can you check?

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

Successfully merging this pull request may close these issues.

2 participants