spurin / diveintoansible

Content for DiveInto.com's 'Dive Into Ansible' Course
1.59k stars 484 forks source link

AWS with Ansible #21

Closed ktinthecloud closed 2 years ago

ktinthecloud commented 2 years ago

Getting the following error when attempting to run the ec2_playbook.yaml in the AWS with Ansible section:

[DEPRECATION WARNING]: amazon.aws.ec2 has been deprecated. The ec2 module is based upon a deprecated version of the AWS SDKs and is deprecated in favor of the ec2_instance module. Please update your tasks. This feature will be removed from amazon.aws in version 4.0.0. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

ktinthecloud commented 2 years ago

The playbook still runs fine. Closing issue.

spurin commented 1 year ago

Thanks!

For now, would you try the deprecation_warnings=False in the ansible.cfg and let me know how you get on.

Hopefully this will be sufficient to at least continue the lesson through to completion.

I’m going to look into updating this lecture to the latest version/approach and will keep this issue open until it’s done.

Best Regards

James Spurin

On 27 Aug 2022, at 19:10, ktinthecloud @.***> wrote:

 Getting the following error when attempting to run the ec2_playbook.yaml in the AWS with Ansible section:

[DEPRECATION WARNING]: amazon.aws.ec2 has been deprecated. The ec2 module is based upon a deprecated version of the AWS SDKs and is deprecated in favor of the ec2_instance module. Please update your tasks. This feature will be removed from amazon.aws in version 4.0.0. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.