diff --git a/knowledge base/ansible.md b/knowledge base/ansible.md index 984330d..5c345ce 100644 --- a/knowledge base/ansible.md +++ b/knowledge base/ansible.md @@ -36,6 +36,7 @@ 1. [Load files' content into variables](#load-files-content-into-variables) 1. [Only run a task when explicitly requested](#only-run-a-task-when-explicitly-requested) 1. [Using AWS' SSM with Ansible fails with error _Failed to create temporary directory_](#using-aws-ssm-with-ansible-fails-with-error-failed-to-create-temporary-directory) + 1. [Future feature annotations is not defined](#future-feature-annotations-is-not-defined) 1. [Further readings](#further-readings) 1. [Sources](#sources) @@ -826,6 +827,18 @@ Solution: Explicitly set Ansible's temporary directory to a folder the remote user can write to.
See [Integrate with AWS SSM]. +### Future feature annotations is not defined + +Refer [Newer versions of Ansible don't work with RHEL 8]. + +Error message example: + +> ```plaintext +> SyntaxError: future feature annotations is not defined +> ``` + +Solution: use a version of `ansible-core` lower than 2.17. + ## Further readings - [Configuration] @@ -881,6 +894,7 @@ See [Integrate with AWS SSM]. - [Handling secrets in your Ansible playbooks] - [Ansible - how to remove an item from a list?] - [Looping over lists inside of a dict] +- [Newer versions of Ansible don't work with RHEL 8]