Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible_mitogen: Support templated become_user #1148

Merged
merged 1 commit into from
Oct 16, 2024

Commits on Oct 14, 2024

  1. ansible_mitogen: Support templated become_user

    This reads the become username from the `become_user` attribute of the play
    context, to the `"become_user"` option of the loaded become plugin. This has
    been supported by vanilla Ansible since Ansible 2.10 (ansible-base 2.10).
    
    To support this I've also switched from using the `play_context.become` (a
    bool), to `connection.become` (an instance of the appropriate) become plugin.
    
    New tests have been added, modelled on those for templated connection
    parameters (see mitogen-hq#1147, mitogen-hq#1153, mitogen-hq#1159).
    
    See
    - ansible/ansible@480b106
    
    refs mitogen-hq#1083
    
    Co-authored-by: mordek <[email protected]>
    moreati and mordek committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    bf6607e View commit details
    Browse the repository at this point in the history