Make sure ansible is not run without a defined playbook.

This commit is contained in:
Andreas B. Mundt 2022-06-26 10:08:55 +02:00 committed by Andreas B. Mundt
parent 829b8b4d3b
commit b413e944ce

View file

@ -53,7 +53,7 @@
echo "{{ sshpubkey }}" >> /target/home/ansible/.ssh/authorized_keys ; \
in-target chown -R ansible:ansible /home/ansible/.ssh/ ; \
in-target chmod -R og= /home/ansible/.ssh/ ; \
in-target ansible-pull --verbose --purge --extra-vars="run_in_installer=true" \
[ -z "$playbook" ] || in-target ansible-pull --verbose --purge --extra-vars="run_in_installer=true" \
-i localhost, --url=git://{{ ansible_hostname }}/.git $playbook
marker: "# {mark} ANSIBLE MANAGED BLOCK preseed/late_command"