Azure-Samples / ansible-playbooks

Ansible Playbook Samples for Azure
MIT License
224 stars 349 forks source link

Update 00-prerequisites.yml #85

Open juanjgit opened 3 years ago

juanjgit commented 3 years ago

Added ip_configurations to remove deprecation warning

Purpose

Current code generates a deprecation warning:

[DEPRECATION WARNING]: Setting ip_configuration flatten is deprecated and will be removed. Using ip_configurations list
 to define the ip configuration. This feature will be removed in version 2.9. Deprecation warnings can be disabled by
setting deprecation_warnings=False in ansible.cfg.

Adding a ip_configurations parameter fixed it.

Does this introduce a breaking change?

Pull Request Type

What kind of change does this Pull Request introduce?

How to Test

$ pip install ansible[azure]
$ ansible-galaxy install azure.azure_preview_modules
$ pip install -r ~/.ansible/roles/azure.azure_preview_modules/files/requirements-azure.txt
git clone https://github.com/Azure-Samples/ansible-playbooks.git
cd ansible-playbooks
git checkout [branch-name]

What to Check

Verify that the playbook is successfully run.

Other Information