community.general.ksu (8.5.0) — become

Kerberos substitute user

Authors: Ansible Core Team

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

This become plugins allows your remote/login user to execute commands as another user via the ksu utility.

Inputs

    
become_exe:
    default: ksu
    description: Su executable
    env:
    - name: ANSIBLE_BECOME_EXE
    - name: ANSIBLE_KSU_EXE
    ini:
    - key: become_exe
      section: privilege_escalation
    - key: executable
      section: ksu_become_plugin
    vars:
    - name: ansible_become_exe
    - name: ansible_ksu_exe

become_pass:
    description: ksu password
    env:
    - name: ANSIBLE_BECOME_PASS
    - name: ANSIBLE_KSU_PASS
    ini:
    - key: password
      section: ksu_become_plugin
    required: false
    vars:
    - name: ansible_ksu_pass
    - name: ansible_become_pass
    - name: ansible_become_password

become_user:
    description: User you 'become' to execute the task
    env:
    - name: ANSIBLE_BECOME_USER
    - name: ANSIBLE_KSU_USER
    ini:
    - key: become_user
      section: privilege_escalation
    - key: user
      section: ksu_become_plugin
    required: true
    vars:
    - name: ansible_become_user
    - name: ansible_ksu_user

prompt_l10n:
    default: []
    description:
    - List of localized strings to match for prompt detection
    - If empty we'll use the built in one
    env:
    - name: ANSIBLE_KSU_PROMPT_L10N
    ini:
    - key: localized_prompts
      section: ksu_become_plugin
    vars:
    - name: ansible_ksu_prompt_l10n

become_flags:
    default: ''
    description: Options to pass to ksu
    env:
    - name: ANSIBLE_BECOME_FLAGS
    - name: ANSIBLE_KSU_FLAGS
    ini:
    - key: become_flags
      section: privilege_escalation
    - key: flags
      section: ksu_become_plugin
    vars:
    - name: ansible_become_flags
    - name: ansible_ksu_flags