Fix Installation of py27

After merge of [1], we are hitting a new issue in py27 jobs.

detailed log[2]
~~~
ERROR! unexpected parameter type in action:
<class 'ansible.parsing.yaml.objects.AnsibleSequence'>
~~~

Fixing this playbook with this patch.

[1] https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/873020/2/playbooks/tox/py27.yaml
[2] https://c3f93530c9211d80493c-aff6bc2b39e4d26360d25c473974606e.ssl.cf5.rackcdn.com/872983/5/gate/openstack-tox-py27/e8389a8/job-output.txt

Change-Id: I117b1371f2504e2d97c970480e733bedbed98343
This commit is contained in:
Sandeep Yadav 2023-02-08 11:13:55 +05:30
parent d267af41de
commit 7d79c95fe5

View File

@ -9,9 +9,11 @@
# [1] https://review.opendev.org/c/openstack/project-config/+/872476 # [1] https://review.opendev.org/c/openstack/project-config/+/872476
- hosts: all - hosts: all
become: true
tasks: tasks:
- name: Install Python 2.7 - name: Install Python 2.7
package: package:
name:
- python - python
- python-dev - python-dev
state: present state: present