ansible / ansible.builtin / v2.9.27 / become / doas Do As user | "added in version" 2.8 of ansible.builtin" Authors: ansible (@core)ansible.builtin.doas (v2.9.27) — become
pip
Install with pip install ansible==2.9.27
This become plugins allows your remote/login user to execute commands as another user via the doas utility.
become_exe: default: doas description: Doas executable env: - name: ANSIBLE_BECOME_EXE - name: ANSIBLE_DOAS_EXE ini: - key: become_exe section: privilege_escalation - key: executable section: doas_become_plugin vars: - name: ansible_become_exe - name: ansible_doas_exe become_pass: description: password for doas prompt env: - name: ANSIBLE_BECOME_PASS - name: ANSIBLE_DOAS_PASS ini: - key: password section: doas_become_plugin required: false vars: - name: ansible_become_password - name: ansible_become_pass - name: ansible_doas_pass become_user: description: User you 'become' to execute the task env: - name: ANSIBLE_BECOME_USER - name: ANSIBLE_DOAS_USER ini: - key: become_user section: privilege_escalation - key: user section: doas_become_plugin vars: - name: ansible_become_user - name: ansible_doas_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_DOAS_PROMPT_L10N ini: - key: localized_prompts section: doas_become_plugin vars: - name: ansible_doas_prompt_l10n become_flags: default: null description: Options to pass to doas env: - name: ANSIBLE_BECOME_FLAGS - name: ANSIBLE_DOAS_FLAGS ini: - key: become_flags section: privilege_escalation - key: flags section: doas_become_plugin vars: - name: ansible_become_flags - name: ansible_doas_flags