# Converting roles to collections semantically with Ansible and ruamel

**URL:** <https://forum.ansible.com/t/converting-roles-to-collections-semantically-with-ansible-and-ruamel/33868>\
**Category:** Ansible Developer\
**Tags:** ansible-lint\
**Created:** [September 22, 2020, 8:01pm UTC](https://forum.ansible.com/t/converting-roles-to-collections-semantically-with-ansible-and-ruamel/33868 "2020-09-22T20:01:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Megginson](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/richard_megginson/32/4540_2.png) [@Richard\_Megginson](https://forum.ansible.com/u/Richard_Megginson)\
**Post date:** [September 22, 2020, 8:01pm UTC](https://forum.ansible.com/t/converting-roles-to-collections-semantically-with-ansible-and-ruamel/33868/1 "2020-09-22T20:01:54Z")

</div>

If you are converting your roles into a collection, and have to keep supporting the old roles format for the foreseeable future, and want to change your Ansible YAML files into collections format such that they match the roles format as closely as possible, you might be interested in [https://linux-system-roles.github.io/2020/09/collection-conversion-ruamel-roundtrip](https://linux-system-roles.github.io/2020/09/collection-conversion-ruamel-roundtrip) in which we use some techniques from ansible-lint and ruamel.
