Commit a1ca71c0 authored by Rafael Monnerat's avatar Rafael Monnerat

playbook: Call yum update is sometimes required

otherwise yum-config-manager is not found sometimes.
parent 7626fd76
...@@ -80,6 +80,7 @@ failovermethod=priority ...@@ -80,6 +80,7 @@ failovermethod=priority
enabled=0 enabled=0
gpgcheck=0 gpgcheck=0
EOF EOF
yum update
# Enable a bootstrap repo. It is removed after finishing # Enable a bootstrap repo. It is removed after finishing
# the epel-release installation. # the epel-release installation.
yum-config-manager --enable epel-bootstrap yum-config-manager --enable epel-bootstrap
...@@ -108,6 +109,7 @@ failovermethod=priority ...@@ -108,6 +109,7 @@ failovermethod=priority
enabled=0 enabled=0
gpgcheck=0 gpgcheck=0
EOF EOF
yum update
yum-config-manager --enable epel-bootstrap yum-config-manager --enable epel-bootstrap
yum_install epel-release || \ yum_install epel-release || \
die $LINENO "Error installing EPEL repo, cannot continue" die $LINENO "Error installing EPEL repo, cannot continue"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment