- name: Copy local vagrant scripts to c:\vagrant
ansible.windows.win_copy:
src: ../../Vagrant/
dest: c:\vagrant
in for example DetectionLab/ESXi/ansible/roles/win10/tasks/main.yml now.
Asking all of this because I am looking into making DetectionLab more flexible regarding IP/MAC/Password configuration at the moment.
For ESXi I already have a good track using terraform variables passed to ansible via --extra-vars . In this case you can define everything in terraform.tfvars which is then also passed to ansible. Now the powershell scripts in /Vagrant/scripts still have to accept some variables in order to make it work but I am at a good way.
@clong I use
in for example
DetectionLab/ESXi/ansible/roles/win10/tasks/main.yml
now. Asking all of this because I am looking into making DetectionLab more flexible regarding IP/MAC/Password configuration at the moment. For ESXi I already have a good track using terraform variables passed to ansible via--extra-vars
. In this case you can define everything interraform.tfvars
which is then also passed to ansible. Now the powershell scripts in /Vagrant/scripts still have to accept some variables in order to make it work but I am at a good way.