Don't use loop to supply multiple items to yum/pip
This fixes a warning. Change-Id: Ib0e6e290a97d5083a9eed5234b7a0694eed58f08
This commit is contained in:
parent
5155cd8777
commit
b94c2241fb
@ -9,10 +9,7 @@
|
||||
|
||||
- name: Install dependencies for CentOS
|
||||
yum:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
become: true
|
||||
with_items:
|
||||
name:
|
||||
- gcc
|
||||
- gcc-c++
|
||||
- git
|
||||
@ -21,14 +18,13 @@
|
||||
- openssl-devel
|
||||
- policycoreutils-python
|
||||
- python-devel
|
||||
state: present
|
||||
become: true
|
||||
when: ansible_distribution_major_version < '8'
|
||||
|
||||
- name: Install dependencies for RHEL8
|
||||
yum:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
become: true
|
||||
with_items:
|
||||
name:
|
||||
- gcc
|
||||
- gcc-c++
|
||||
- git
|
||||
@ -39,6 +35,8 @@
|
||||
- python3-devel
|
||||
- python3-pip
|
||||
- python3-virtualenv
|
||||
state: present
|
||||
become: true
|
||||
when: ansible_distribution_major_version == '8'
|
||||
|
||||
- name: Install pip
|
||||
@ -61,11 +59,10 @@
|
||||
|
||||
- name: Install virtualenv and setuptools- zuul user
|
||||
pip:
|
||||
name: "{{ item }}"
|
||||
become: true
|
||||
with_items:
|
||||
name:
|
||||
- virtualenv
|
||||
- setuptools
|
||||
become: true
|
||||
when: ansible_user == "zuul" and ansible_distribution_major_version < '8'
|
||||
|
||||
- name: Determine if browbeat directory exists already
|
||||
|
Loading…
Reference in New Issue
Block a user