ansibleprep_start()
{
+ export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
+
# Just enough so kp can log in
pw user add kp
pw user mod kp -s /usr/local/bin/zsh
# And sudo should work for ansible
chown root:wheel /usr/local/etc/sudoers
+
+ # Run ansible-pull so we install immediately rather than wait for cron
+ /home/kp/bin/ansible_poll
+
+ # And again, because the first run sets a hostname, the second one
+ # applies per-host configuration
+ /home/kp/bin/ansible_poll
}
load_rc_config $name