prudhvi
prudhvi

Reputation: 1171

Running a PowerShell command using Ansible

I have some PowerShell commands to perform a job. Instead of running them one after another, I want to place them in an Ansible playbook so that they get executed in a sequence when the playbook is being run.

Any suggestions about which modules could I use in ansible to do this??

Upvotes: 0

Views: 5756

Answers (1)

techraf
techraf

Reputation: 68489

Save the commands to a file and execute them using the script module.

- script: PowerShell.ps1

Upvotes: 3

Related Questions