From c5dc3c85acbe2af8211d6c9bee35639bafc64f02 Mon Sep 17 00:00:00 2001 From: Alessio Curri <alessio.curri@gmail.com> Date: Mon, 16 Nov 2020 14:42:24 +0100 Subject: [PATCH] fixing torn callback --- templates/firstboot.sh.j2 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/firstboot.sh.j2 b/templates/firstboot.sh.j2 index b60dc85..45ec2e5 100644 --- a/templates/firstboot.sh.j2 +++ b/templates/firstboot.sh.j2 @@ -23,18 +23,18 @@ do done yum makecache 2>&1 >> $LOGFILE -yum install -y python2-ansible-tower-cli 2>&1 >> $LOGFILE +# yum install -y python3 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 +# wget -O ~/.tower_cli.cfg {{ kickstart_url }}/tower_cli.cfg 2>&1 >> $LOGFILE +# chmod 600 ~/.tower_cli.cfg 2>&1 >> $LOGFILE wget -O /tmp/awxconf {{ kickstart_url }}/awx_cli_config 2>&1 >> $LOGFILE source /tmp/awxconf rm /tmp/awxconf -{{ autoinstall_awxkit_path }} -k job_template launch "{{ autoinstall_post_reboot_job }}" --limit `hostname -f` --monitor --extra_vars "@extra.yaml" 2>&1 >> $LOGFILE +{{ autoinstall_awxkit_path }} -k job_template launch "{{ autoinstall_post_reboot_job }}" --limit `hostname -f` 2>&1 >> $LOGFILE -#cp /etc/crontab /root/crontab.reboot 2>&1 >> $LOGFILE +# cp /etc/crontab /root/crontab.reboot 2>&1 >> $LOGFILE mv /root/crontab.bkp /etc/crontab 2>&1 >> $LOGFILE echo "end of firstboot" 2>&1 >> $LOGFILE rm -f $0 -- GitLab