image: improve ansibleprep run
authorKristof Provost <kp@FreeBSD.org>
Wed, 12 Jul 2023 11:06:24 +0000 (13:06 +0200)
committerKristof Provost <kp@FreeBSD.org>
Wed, 12 Jul 2023 11:06:24 +0000 (13:06 +0200)
commitcdf66d507d77ac1deabe960c1b7a3326a508df1e
tree08c1c5d4dc821edb5c921b932f7cc894c9804669
parentd2b8b386b5e271f03523861c41a27b15dbbe957e
image: improve ansibleprep run

Make it more likely we'll call ansible-poll at first boot.
If there's no internet connectivity on first boot we woudln't ansible-
poll until the crontab called it.

Instead we now run ansibleprep every time and exit if our hostname
isn't poudriere-image (i.e. if we've actually run the first ansible-
poll call).
image/overlay/domotica/etc/rc.d/ansibleprep