Skip to content

Conversation

@mbaldessari
Copy link
Contributor

  • Remove unused automation_hub_url variable
  • Consolidate AAP debug tasks into a single task
  • Use local_token_duration_days variable in jwt_check error message
  • Quote template variables consistently in agof_overrides.yml.j2
  • Fix broken exception handling in activations_to_enable filter
  • Remove unused controller_state variable
  • Rename vague "Debug" task to "Show AAP hostname"
  • Remove unnecessary block wrapper around pre-config fixups
  • Consolidate adjacent set_fact tasks in rulebook_activations
  • Remove commented-out debug task in resources.yml
  • Consolidate AWS user set_fact tasks in aws_check_setup
  • Consolidate adjacent debug tasks in teardown.yml
  • Use fully qualified collection names for builtin modules in init_env

This variable was defined in preinit_vars.yml but never referenced
anywhere in the codebase.
Three separate debug tasks for reporting AAP endpoint, user, and
password are combined into one task with a message list.
The error message had "30 days" hardcoded even though the duration is
parameterized via local_token_duration_days.
aap_password and aap_hostname were unquoted while other string values
in the same file were quoted.
dict.get() never raises exceptions, and IndexError was the wrong type
anyway (KeyError would be correct for dicts). The except branch was
unreachable, causing every activation to be treated as enabled
regardless of its 'enabled' or 'state' values.

Replace with explicit key presence check that respects the 'enabled'
field value and falls back to checking 'state'.
Defined in configure_aap defaults but never referenced anywhere in the
project.
Task name should describe what it shows, not just say "Debug".
A block containing a single task can be replaced with the task
directly, moving the when condition onto it.
These two set_fact tasks have no dependency on each other and can be
a single task.
aws_user and aws_account are independent facts extracted from the same
whoami result and can be set in a single task.
Two separate debug tasks for ec2_vpc_id and ec2_security_group with
the same debug_teardown condition are combined into one.
Replace unqualified module names (set_fact, debug, assert, fail, file,
include_tasks, template) with their ansible.builtin.* equivalents
across all task files in init_env/aws/.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant