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

Reply via email to