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 }}
     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 ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/21754e3e-b05e-4181-8eee-6599baca35a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupansible-project @
postedOct 7, '14 at 1:23p
activeOct 8, '14 at 12:54p

2 users in discussion

Yoann DAVID: 2 posts Michael DeHaan: 1 post



site design / logo © 2022 Grokbase