Hello Julien,

First and foremost thing is to refer to porting guide for your target
version.
Ansible 2.5 Porting Guide
<https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.5.html#id1>

This will give you information about what have changed and you can change
them in your older version.

Basic idea is:
Track the modules which have changed in the target version.
List down the modules you have used in the existing version
Compare both of them and make the necessary changes afterwards.
If you have roles implemented then it might be faster to check in the
roles, for what all modules you have implemented.
But all manual efforts.

On Mon, Dec 31, 2018 at 9:22 PM Lienj <[email protected]> wrote:

> Hi there,
> we have a bunch of playbooks and roles, all written in Ansible version >=
> 2.4
> I need to audit all our playbooks in order to migrate to a more recent
> version.
> There are a lot of changes from 2.4 to 2.5 mainly:
>
>    - Loops (with_item vs loop)
>    - Attributes inheritances
>
> I don't know how to handle that, do you have any methods for first
> auditing what need to be changed and then ensure the changes are valid
> (from a syntax point of view) ?
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/ab812297-5990-42f8-9754-669e124ad26c%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/ab812297-5990-42f8-9754-669e124ad26c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BLLie58Ay6LKHLpK7dVA7ydj%3Dh26iwT%3DYLi3oOoMNk89TGq%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to