Hide yum-config-manager output

The yum-config-manager command has a ton of output and it's not
possible to make it more quiet with command line arguments. This
patch ensures that the output is removed.

Change-Id: I84fee9e76db638b2561152d60b17d45bbf60b3cf
This commit is contained in:
Major Hayden 2017-09-15 11:50:11 -06:00
parent b068c49aca
commit 761396c177
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1
1 changed files with 4 additions and 4 deletions

View File

@ -106,10 +106,10 @@ function gate_job_exit_tasks {
# by default. This step ensures that only the base, epel, and updates
# repositories are enabled.
if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then
sudo yum-config-manager --disable \*
sudo yum-config-manager --enable base
sudo yum-config-manager --enable epel
sudo yum-config-manager --enable updates
sudo yum-config-manager --disable \* > /dev/null
sudo yum-config-manager --enable base > /dev/null
sudo yum-config-manager --enable epel > /dev/null
sudo yum-config-manager --enable updates > /dev/null
fi
# Ensure that the Ansible environment is properly prepared