Hi Team,

I am trying ansible 2 and not sure why it got error below

TASK [postgres : include] 
******************************************************
task path: /home/stevek/ansible-jumbo/roles/postgres/tasks/main.yml:10
fatal: [test-pg-all]: FAILED! => {"failed": true, "reason": "ERROR! 
duplicate loop in task: items\n\nThe error appears to have been in 
'/home/stevek/ansible-jumbo/roles/postgres/tasks/01-install.yml': line 7, 
column 3, but may\nbe elsewhere in the file depending on the exact syntax 
problem.\n\nThe offending line appears to be:\n\n\n- name: Install 
postgres93\n  ^ here\n"}

cat /home/stevek/ansible-jumbo/roles/postgres/tasks/01-install.yml
---

- name: Install postgres93
  yum: name={{item}} state=present
  with_items:
    - "{{cron_pkgname}}"
    - "{{mail_pkgname}}"
    - "rdiff-backup"
    - "which"
    - "postgresql93-server"
    - "postgresql93-contrib"
  env: proxy_env

- name: yum clean up cache
  shell: yum clean all; yum clean metadata
  when: do_cleanup == 'yes'

# vim:expandtab ts=2 sw=2

This run perfectly fine with ansible 1.9.x 

Please help.

-- 
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+unsubscr...@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/91a9cad9-0384-49c9-a5c4-e563e98472b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to