This fixes deprecation warning to invoke yum module without
with_items. Using with_items is slower and not recommended.
[DEPRECATION WARNING]: Invoking "yum" only once while using a loop
via squash_actions is deprecated. Instead of using a loop to supply
multiple items and specifying `name: {{item}}`, please use
`name: [u'{{sed_output.stdout_lines }}']` and remove the loop.
This feature will be removed in version 2.11.
Change-Id: Ie2c95d54d4ddf59cfc65d4b74cc4008ff4929218
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
args:
warn: False
- name: "Install non-baseline requirements for {{ os_branch }}"
- yum: 'name={{item}} state=present'
- with_items:
- - "{{ sed_output.stdout_lines }}"
+ yum:
+ name: "{{ sed_output.stdout_lines }}"
+ state: present
become: true
- name: git clone openstack core projects
git: repo='https://github.com/openstack/{{ item }}.git'