
    Vh                    B    d dl mZ dZd dlmZ d dlmZ  G d de      Zy)    )annotationsa  
name: pmrun
short_description: Privilege Manager run
description:
  - This become plugins allows your remote/login user to execute commands as another user using the C(pmrun) utility.
author: Ansible Core Team
options:
  become_exe:
    description: C(pmrun) executable.
    type: string
    default: pmrun
    ini:
      - section: privilege_escalation
        key: become_exe
      - section: pmrun_become_plugin
        key: executable
    vars:
      - name: ansible_become_exe
      - name: ansible_pmrun_exe
    env:
      - name: ANSIBLE_BECOME_EXE
      - name: ANSIBLE_PMRUN_EXE
  become_flags:
    description: Options to pass to C(pmrun).
    type: string
    default: ''
    ini:
      - section: privilege_escalation
        key: become_flags
      - section: pmrun_become_plugin
        key: flags
    vars:
      - name: ansible_become_flags
      - name: ansible_pmrun_flags
    env:
      - name: ANSIBLE_BECOME_FLAGS
      - name: ANSIBLE_PMRUN_FLAGS
  become_pass:
    description: C(pmrun) password.
    type: string
    required: false
    vars:
      - name: ansible_become_password
      - name: ansible_become_pass
      - name: ansible_pmrun_pass
    env:
      - name: ANSIBLE_BECOME_PASS
      - name: ANSIBLE_PMRUN_PASS
    ini:
      - section: pmrun_become_plugin
        key: password
notes:
  - This plugin ignores the C(become_user) supplied and uses C(pmrun)'s own configuration to select the user.
)
BecomeBase)shlex_quotec                  &     e Zd ZdZdZ fdZ xZS )BecomeModulezcommunity.general.pmrunzEnter UPM user password:c           
         t         t        |   ||       |s|S | j                  d      }| j                  d      }| d| dt	        | j                  ||             S )N
become_exebecome_flags )superr   build_become_command
get_optionr   _build_success_command)selfcmdshellbecomeflags	__class__s        j/home/dcms/DCMS/lib/python3.12/site-packages/ansible_collections/community/general/plugins/become/pmrun.pyr   z!BecomeModule.build_become_commandG   sc    lD6sEBJ./5';t/J/J3PU/V#W"XYY    )__name__
__module____qualname__namepromptr   __classcell__)r   s   @r   r   r   B   s    $D'F	Z 	Zr   r   N)
__future__r   DOCUMENTATIONansible.plugins.becomer   ansible.module_utils.six.movesr   r    r   r   <module>r#      s(   
 #5n . 6Z: Zr   