79159189

Date: 2024-11-05 12:56:04
Score: 1.5
Natty:
Report link

For Windows you will have to use become_method: runas

So your playbook can be updated as below:

---
- hosts: all
  become: true
  become_method: runas

  roles:
    - puppet-agent

Checkout the official documentation below for more information: https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_privilege_escalation.html#become-and-windows

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: kwick