Refactor existing Ansible roles or tasks to improve clarity, idempotency, or standards compliance
Improve existing Ansible YAML without changing the intended behaviour. Always preserve idempotency and follow ../../copilot-instructions.md.
apt → ansible.builtin.apt).key=value task arguments to YAML dict syntax.name fields into clear, outcome-oriented Title Case sentences.tasks/main.yml with more than ~30 tasks into focused sub-task files imported via include_tasks.defaults/main.yml with appropriate comments.changed_when: false or appropriate guards to command/shell tasks.notifypackages, config, service, files, security tags.Explain each refactoring change and why it improves quality or compliance.