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

Fix/replace deprecated include module #11

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

smagdziarz
Copy link

@smagdziarz smagdziarz commented Dec 3, 2024

The include module has been deprecated in Ansible 2.12, and completely removed in Ansible 2.16 (https://github.com/ansible/ansible/blob/v2.16.0/changelogs/CHANGELOG-v2.16.rst#removed-features-previously-deprecated).

Replacing it with include_tasks and import_tasks fixes the issue. Both were introduced in Ansible 2.4 so this should not be a braking change (see: https://docs.ansible.com/ansible/2.9/modules/include_tasks_module.html and https://docs.ansible.com/ansible/2.9/modules/import_tasks_module.html#import-tasks-module).

This pull request also includes commits which were already added last year, they were tagged with 3.0.0-alpha1 and 3.0.0-alpha2, but I don't know why they don't seem to be part of the master branch.

Sławomir Magdziarz and others added 6 commits September 8, 2023 12:16
…certificate

As of Ansible 2.10, the 'openssl_certificate' was moved to the 'community.crypto'
collection and the 'assertonly' provider was removed.

See: https://docs.ansible.com/ansible/latest/collections/community/crypto/x509_certificate_module.html#synopsis
- changing requirements to be Ansible 2.10.0+
- updating usage to use role version 3.0.0
- adding missing commas
to improve compatibility with newer ansible versions.
this commit is not changing all module names though, this still to be
finalized
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.

1 participant