Skip to content

Remove dead block/rescue logic in filetree_create role#86

Open
blaipr wants to merge 1 commit into
ctrliq:mainfrom
blaipr:cleanup-filetree-create-dead-code
Open

Remove dead block/rescue logic in filetree_create role#86
blaipr wants to merge 1 commit into
ctrliq:mainfrom
blaipr:cleanup-filetree-create-dead-code

Conversation

@blaipr

@blaipr blaipr commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Remove unreachable rescue branch in roles/filetree_create/tasks/main.yml that checked for the same collection (ctrliq.ascender) as the block
  • Remove legacy awx_awx_collection_installed variable name
  • Simplify to a straightforward check-then-set flow that directly assigns controller_api_plugin

The block and rescue branches both checked for ctrliq.ascender, so the conditional that chose between them always resolved to the same value. The entire rescue path was dead code.

Test plan

  • ansible-lint passes
  • filetree_create role still correctly detects the collection and sets controller_api_plugin

The block/rescue structure checked for ctrliq.ascender in both paths,
making the rescue branch unreachable. The awx_awx_collection_installed
variable was a legacy artifact. Simplify to a straightforward
check-then-set flow that directly sets controller_api_plugin.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant