The "=" short form is often more concise for simple things that can be put
all on one line

   - copy: src=a dest=/tmp/b mode=0644 owner=root

etc

Both are fine and neither will be deprecated.

The colon form is needed to pass structured data, as is required by some
modules, like the ec2 modules



On Tue, Oct 7, 2014 at 9:23 AM, Yoann DAVID <[email protected]> wrote:

> Hello,
>
> depending of the playbook, the modules attribute's in task are differently
> written :
>
> Colon synthax :
>
> - name: APT | Update the general configuration
> (/etc/apt/apt.conf.ds/10general)      template:         src:
> etc_apt_apt.conf.d_10general.j2        dest: /etc/apt/apt.conf.d/10general
> owner: root        group: root        mode: 0644
>
> Equal synthax :
>
>  - name: Configure APT and package sources      template:
>     src={{ item }}.j2
>     dest=/{{ item }}
>     owner=root
>     group=root
>     mode=0644      with_items:         - 'etc/apt/sources.list'
>
> Why ?
> Which one is prefered ?
> Must one of this will be deprecated ?
>
>
> Thanks a lot
>
>
>
>  --
> 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/21754e3e-b05e-4181-8eee-6599baca35a4%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/21754e3e-b05e-4181-8eee-6599baca35a4%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%2BnsWgyourB%3DCd5dAukBMf%3DDtyu3xVmCfGWi6VB6YSvU4ojh%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to