You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reporting "changed" for the first run and "ok" for subsequent runs.
ACTUAL RESULTS
Reports "changed" every run.
PROBABLE CAUSE AND FIX
It looks as if the module queries for existing subnets using the tag:Name filter. AWS uses a lower-case name tag in its frontend and it seems as if this filter is case-sensitive. Indeed changing both instance of tag:Name to tag:name in plugins/modules/ec2_vpc_nacl.py fixed the problem for me.
The text was updated successfully, but these errors were encountered:
alinabuzachis
pushed a commit
to alinabuzachis/community.aws
that referenced
this issue
May 25, 2022
…o.py (ansible-collections#568)
Move ec2_vol_info example from ec2_vol_info_module.rst to ec2_vol_info.py
SUMMARY
ansible-collections#561 put it in the wrong place and release prep overwrites it.
ISSUE TYPE
Docs Pull Request
COMPONENT NAME
ec2_vol_info
ADDITIONAL INFORMATION
Reviewed-by: Felix Fontein <None>
Reviewed-by: None <None>
I'm unable to reproduce this issue with the current version of this collection. Looking at our integration tests we also already have an integration test which checks for idempotency when associating NACLs to subnets by name. If you're able to reproduce the issue, then feel free to reopen the issue. However we'll need more detailed information. The best option would be if you could reproduce it using ansible-playbook -vvv and calling:
ec2_vpc_nacl
ec2_vpc_nacl_info
ec2_vpc_nacl
ec2_vpc_nacl_info
While I understand the desire not to expose Account / resource IDs / credentials, and you can redact them, it would be helpful to have as much information about how you're invoking the module as possible, your comments about tag:Name make me suspect there might be something related to tagging in the rest of the way you're invoking the module (possibly related to tagging which was cleaned up in #1189).
SUMMARY
Associating subnets by name results in "changed" every time.
ISSUE TYPE
COMPONENT NAME
ec2_vpc_nacl
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Debian GNU/Linux 10 (buster)
STEPS TO REPRODUCE
Running the following step multiple times:
EXPECTED RESULTS
Reporting "changed" for the first run and "ok" for subsequent runs.
ACTUAL RESULTS
Reports "changed" every run.
PROBABLE CAUSE AND FIX
It looks as if the module queries for existing subnets using the
tag:Name
filter. AWS uses a lower-casename
tag in its frontend and it seems as if this filter is case-sensitive. Indeed changing both instance oftag:Name
totag:name
inplugins/modules/ec2_vpc_nacl.py
fixed the problem for me.The text was updated successfully, but these errors were encountered: