Skip to content

ec2_instance -> app_callback -> set_password doesn't work #1449

Closed
@pluto00987

Description

Summary

Setting the 'set_password' option doesn't product the expected result.

Problem seems to be here

passwd=params.get('aap_callback').get('set_passwd'),

where it's passing 'set_passwd' when the actual variable name is 'set_password' set here

set_password=dict(type='str', no_log=True),

Seems to be a typo included in #1199 as it worked prior to that.

Issue Type

Bug Report

Component Name

ec2_instance

Ansible Version

$ ansible --version

Collection Versions

version 5.4.0
Also present in main branch

AWS SDK versions

$ pip show boto boto3 botocore

Configuration

$ ansible-config dump --only-changed

OS / Environment

No response

Steps to Reproduce

Expected Results

A line should be present in user_data for the new instance, which sets the local admin password

Actual Results

It's not there

Code of Conduct

  • I agree to follow the Ansible Code of Conduct

Metadata

Assignees

Labels

bugThis issue/PR relates to a bugmodulemodulepluginsplugin (any type)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions