Hi all,
I have a role where the file "configure_disks.ps1" is placed in folder "files".
From the role task I'm trying to run the "script" module using that file:
- name: Configure data disk storage pool
script:
free_form: "configure_disks.ps1" (I have also tried "files/configure_disks.ps1")
creates: "C:/scripts/storagepool_configured.txt"
Shouldn't this work? I can't seem to find exact documentation on when I can use the "files" folder and when I can't.
Failing that, I guess I can copy the script out to nodes first, but that means I'm unable to use the script module since that expects a source file existing on the control node, right?
I haven't used the "script" module much, so any pointers would be great.