Hello All,

I want to execute one powershell script on few target servers which require 
powershell to be run as administrator. I am getting access denied error 
when i try with normal playbook.

- name: Install software on Wndows Remote server.
  hosts: all
  tasks:

  - name: copy script
    win_copy:
      src: /tmp/install.ps1
      dest: c:\temp\install.ps1

  - name: run a powershell script
    script: install.ps1 -Install -arg '{{ ARGLIST }}'
    register: out1
  - debug: var=out1


I am getting access denied error when i try to execute this playbook.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2118ad43-cf89-45dc-88c6-9b143f43531f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to