Skip to content
Permalink
Browse files

Merge "Don't use loop to supply multiple items to yum/pip"

  • Loading branch information...
Zuul authored and openstack-gerrit committed Oct 29, 2019
2 parents c335d64 + b94c224 commit 0e1d5ba2c8934f0c6c1dce3f26777aa75af53592
Showing with 23 additions and 26 deletions.
  1. +23 −26 ansible/install/roles/browbeat/tasks/main.yml
@@ -9,36 +9,34 @@

- name: Install dependencies for CentOS
yum:
name: "{{ item }}"
name:
- gcc
- gcc-c++
- git
- libffi-devel
- libsemanage-python
- openssl-devel
- policycoreutils-python
- python-devel
state: present
become: true
with_items:
- gcc
- gcc-c++
- git
- libffi-devel
- libsemanage-python
- openssl-devel
- policycoreutils-python
- python-devel
when: ansible_distribution_major_version < '8'

- name: Install dependencies for RHEL8
yum:
name: "{{ item }}"
name:
- gcc
- gcc-c++
- git
- libffi-devel
- python3-libsemanage
- openssl-devel
- python3-policycoreutils
- python3-devel
- python3-pip
- python3-virtualenv
state: present
become: true
with_items:
- gcc
- gcc-c++
- git
- libffi-devel
- python3-libsemanage
- openssl-devel
- python3-policycoreutils
- python3-devel
- python3-pip
- python3-virtualenv
when: ansible_distribution_major_version == '8'

- name: Install pip
@@ -61,11 +59,10 @@

- name: Install virtualenv and setuptools- zuul user
pip:
name: "{{ item }}"
name:
- virtualenv
- setuptools
become: true
with_items:
- virtualenv
- setuptools
when: ansible_user == "zuul" and ansible_distribution_major_version < '8'

- name: Determine if browbeat directory exists already

0 comments on commit 0e1d5ba

Please sign in to comment.
You can’t perform that action at this time.