mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
win_become: Added support to become a service user (#30407)
* win_become: Added support to become a service user * fixes for linting * changes to get local and network service working * fixed linting issues again * pleasing pepe
This commit is contained in:
parent
4e22677e7d
commit
82fa922491
3 changed files with 744 additions and 542 deletions
|
@ -590,9 +590,6 @@ class PlayContext(Base):
|
|||
if not self.become_user:
|
||||
raise AnsibleError(("The 'runas' become method requires a username "
|
||||
"(specify with the '--become-user' CLI arg, the 'become_user' keyword, or the 'ansible_become_user' variable)"))
|
||||
if not self.become_pass:
|
||||
raise AnsibleError(("The 'runas' become method requires a password "
|
||||
"(specify with the '-K' CLI arg or the 'ansible_become_password' variable)"))
|
||||
becomecmd = cmd
|
||||
|
||||
elif self.become_method == 'doas':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue