Add CentOS7 support to the utility playbook
This change adds the git package and the yum install task to allow the utility playbook to be executed against a CentOS7 OS. Change-Id: Ie7545edf8d30e6a2018658e478a899afa2c043bb Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
55101030f2
commit
ed4bc6bb24
@ -86,19 +86,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 }}"
|
||||
@ -123,6 +132,8 @@
|
||||
vars:
|
||||
utility_apt_packages:
|
||||
- git
|
||||
utility_yum_packages:
|
||||
- git
|
||||
utility_pip_packages:
|
||||
- python-openstackclient
|
||||
- python-ceilometerclient
|
||||
|
Loading…
x
Reference in New Issue
Block a user