Merge "Add CentOS7 support to the utility playbook"

This commit is contained in:
Jenkins 2016-07-22 06:18:36 +00:00 committed by Gerrit Code Review
commit 1782957abb

View File

@ -49,19 +49,28 @@
until: apt_update|success
retries: 5
delay: 2
when:
- ansible_pkg_mgr == 'apt'
tags:
- utility-apt-packages
- name: Install apt packages
apt:
pkg: "{{ item }}"
state: latest
register: install_packages
until: install_packages|success
retries: 5
delay: 2
with_items: "{{ utility_apt_packages | default([]) }}"
with_items: "{{ utility_apt_packages }}"
when:
- ansible_pkg_mgr == 'apt'
tags:
- utility-apt-packages
- name: Install yum packages
yum:
pkg: "{{ item }}"
state: latest
with_items: "{{ utility_yum_packages }}"
when:
- ansible_pkg_mgr == 'yum'
tags:
- utility-yum-packages
- name: Install pip packages
pip:
name: "{{ item }}"
@ -86,6 +95,8 @@
vars:
utility_apt_packages:
- git
utility_yum_packages:
- git
utility_pip_packages:
- python-openstackclient
- python-ceilometerclient