Many examples of tasks I see give module parameters with key=value syntax
like this:


- name: add update-motd package
   sudo: yes
   yum:
     name=update-motd
     state=present
   tags:
     - motd

- name: install figlet for banner messages with pizazz
   sudo: yes
   yum:
     name=figlet
     state=present
   tags:
     - motd

---

But I've also found that I can use colons to separate the key/value pairs
for the module too. Like this:

- name: add update-motd package
   sudo: yes
   yum:
     name: update-motd
     state: present
   tags:
     - motd

- name: install figlet for banner messages with pizazz
   sudo: yes
   yum:
     name: figlet
     state: present
   tags:
     - motd

Is the second way wrong? Is one way preferred over the other?


--
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/ee6ad165-ac48-45a7-9762-9b3323d81ddc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupansible-project @
postedFeb 7, '15 at 2:11p
activeFeb 7, '15 at 3:10p
posts4
users3

People

Translate

site design / logo © 2022 Grokbase