Merge "Add CentOS7 support to the utility playbook"
This commit is contained in:
commit
1782957abb
@ -49,19 +49,28 @@
|
|||||||
until: apt_update|success
|
until: apt_update|success
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 2
|
delay: 2
|
||||||
|
when:
|
||||||
|
- ansible_pkg_mgr == 'apt'
|
||||||
tags:
|
tags:
|
||||||
- utility-apt-packages
|
- utility-apt-packages
|
||||||
- name: Install apt packages
|
- name: Install apt packages
|
||||||
apt:
|
apt:
|
||||||
pkg: "{{ item }}"
|
pkg: "{{ item }}"
|
||||||
state: latest
|
state: latest
|
||||||
register: install_packages
|
with_items: "{{ utility_apt_packages }}"
|
||||||
until: install_packages|success
|
when:
|
||||||
retries: 5
|
- ansible_pkg_mgr == 'apt'
|
||||||
delay: 2
|
|
||||||
with_items: "{{ utility_apt_packages | default([]) }}"
|
|
||||||
tags:
|
tags:
|
||||||
- utility-apt-packages
|
- 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
|
- name: Install pip packages
|
||||||
pip:
|
pip:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
@ -86,6 +95,8 @@
|
|||||||
vars:
|
vars:
|
||||||
utility_apt_packages:
|
utility_apt_packages:
|
||||||
- git
|
- git
|
||||||
|
utility_yum_packages:
|
||||||
|
- git
|
||||||
utility_pip_packages:
|
utility_pip_packages:
|
||||||
- python-openstackclient
|
- python-openstackclient
|
||||||
- python-ceilometerclient
|
- python-ceilometerclient
|
||||||
|
Loading…
Reference in New Issue
Block a user