diff --git a/roles/prepare4clients/tasks/main.yml b/roles/prepare4clients/tasks/main.yml index bf89fc1..9b1415c 100644 --- a/roles/prepare4clients/tasks/main.yml +++ b/roles/prepare4clients/tasks/main.yml @@ -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"