From cdb800164f76a76ce7ea088cc994d069d3ea2325 Mon Sep 17 00:00:00 2001 From: Stephane Armanet <stephane.armanet@esss.se> Date: Wed, 16 Oct 2019 14:49:18 +0200 Subject: [PATCH] Clen YUM cache before running the ansible call back --- templates/firstboot.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/firstboot.sh.j2 b/templates/firstboot.sh.j2 index 702954a..2054d4f 100644 --- a/templates/firstboot.sh.j2 +++ b/templates/firstboot.sh.j2 @@ -27,9 +27,9 @@ do sleep 2 done - yum makecache 2>&1 >> $LOGFILE yum install -y python2-ansible-tower-cli 2>&1 >> $LOGFILE +yum clean all 2>&1 >> $LOGFILE wget -O ~/.tower_cli.cfg {{ kickstart_url }}/tower_cli.cfg 2>&1 >> $LOGFILE chmod 600 ~/.tower_cli.cfg 2>&1 >> $LOGFILE -- GitLab