Description of problem: When creating an ami in openshift-ansible provisioning, Ansible displays the following warning... [DEPRECATION WARNING]: ec2_ami_find is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. Code can be found here (there are other instances in the same data structure): Version-Release number of the following components: openshift-ansible 3.9, 3.10 How reproducible: Always Steps to Reproduce: 1. ansible-playbook -i inventory.yml openshift-cluster/build_ami.yml -e @provisioning_vars.yml Expected results: 1. ansible-playbook -i inventory.yml openshift-cluster/build_ami.yml -e @provisioning_vars.yml PLAY [localhost] *** TASK ... TASK ... Warning is not shown
See https://github.com/openshift/openshift-ansible/pull/9722
pull/97222 is merged. Please test from master. build_ami, provision, and provision_nodes plays should not display warning "[DEPRECATION WARNING]: ec2_ami_find..."
Fixed at: openshift-ansible-3.11.0-0.25.0-34-g04f8519 # grep ec2_ami_find *logs* # # grep ec2_ami_facts *logs* Using module file /usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/ec2_ami_facts.py :Using module file /usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/ec2_ami_facts.py
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:2652