diff --git a/debian-inst/makefile b/debian-inst/makefile index cfc67bb..2beddd6 100644 --- a/debian-inst/makefile +++ b/debian-inst/makefile @@ -24,7 +24,6 @@ modified.iso: orig.iso makefile ${preseed} isolinux ../playbook mv "${boot_dir}/menu.cfg" "${boot_dir}/menu_installer.cfg" cp -r isolinux/* "${boot_dir}" cp -r ../playbook "${iso_dir}/playbook" - echo "localhost ansible_connection=local" > "${iso_dir}/playbook/hosts" rm -rf "${iso_dir}/playbook/credentials" chmod +w "${chksum_file}" cd "$(dir ${chksum_file})" && "${sum_type}" `find . -follow -type f \! -name "$(notdir ${chksum_file})"` > "$(notdir ${chksum_file})" diff --git a/playbook/execute.sh b/playbook/execute.sh index 36ee7e6..22fdfbe 100644 --- a/playbook/execute.sh +++ b/playbook/execute.sh @@ -4,6 +4,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"; source "$DIR/_common.sh"; cd "$DIR"; +echo "localhost ansible_connection=local" > hosts if ansible-playbook site.yml; then echo "Dieses Passwort wurde für das admin-Konto generiert:" echo "$(cat credentials/admin)";