Skip to content
Snippets Groups Projects
Commit c5dc3c85 authored by Alessio Curri's avatar Alessio Curri
Browse files

fixing torn callback

parent 443bb991
No related branches found
No related tags found
No related merge requests found
Pipeline #53400 passed
...@@ -23,18 +23,18 @@ do ...@@ -23,18 +23,18 @@ do
done done
yum makecache 2>&1 >> $LOGFILE 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 yum clean all 2>&1 >> $LOGFILE
wget -O ~/.tower_cli.cfg {{ kickstart_url }}/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 # chmod 600 ~/.tower_cli.cfg 2>&1 >> $LOGFILE
wget -O /tmp/awxconf {{ kickstart_url }}/awx_cli_config 2>&1 >> $LOGFILE wget -O /tmp/awxconf {{ kickstart_url }}/awx_cli_config 2>&1 >> $LOGFILE
source /tmp/awxconf source /tmp/awxconf
rm /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 mv /root/crontab.bkp /etc/crontab 2>&1 >> $LOGFILE
echo "end of firstboot" 2>&1 >> $LOGFILE echo "end of firstboot" 2>&1 >> $LOGFILE
rm -f $0 rm -f $0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment