79417746

Date: 2025-02-06 11:41:45
Score: 2.5
Natty:
Report link

Solve is simple.

because doing it via ansible doesnt run on the same user as when you try it on the windows host

https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_privilege_escalation.html

give the become and become user a go

become: yes
become_user: <windows user>

add that to your playbook

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: rumeysa yuk