mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
adds privilege escalation method for pmrun(Unix Privilege Manager 6.0)
This commit is contained in:
parent
f9b836a901
commit
04073dfa9b
4 changed files with 14 additions and 6 deletions
|
@ -587,6 +587,13 @@ class PlayContext(Base):
|
|||
else:
|
||||
becomecmd = '%s -u %s %s' % (exe, self.become_user, command)
|
||||
|
||||
elif self.become_method == 'pmrun':
|
||||
|
||||
exe = self.become_exe or 'pmrun'
|
||||
|
||||
prompt='Enter UPM user password:'
|
||||
becomecmd = '%s %s %s' % (exe, flags, shlex_quote(command))
|
||||
|
||||
else:
|
||||
raise AnsibleError("Privilege escalation method not found: %s" % self.become_method)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue