Packer.Images/ansible/roles/firstboot/templates/firstboot.j2

11 lines
280 B
Plaintext
Raw Normal View History

2021-06-08 19:56:06 +00:00
#!/bin/bash
# Workaround for ansible output regression
export PYTHONUNBUFFERED=1
2021-06-09 20:11:06 +00:00
# Apply firstboot configuration w/ ansible
/usr/local/bin/ansible-playbook /opt/firstboot/ansible/playbook.yml | tee -a /var/log/firstboot.log > /dev/tty1 2>&1
# Cleanup console
clear > /dev/tty1