We are getting "one of the following is required: name,list" error on 
executing handlers on non sles servers 

skipping: [NESSTDDB01] => (item=ntp)
skipping: [NESSTDDB01] => (item=vim)
failed: [NESLTR10AJAWA01] (item=vim) => {"failed": true, "item": "vim", 
"msg": "one of the following is required: name,list"}
failed: [neslds12ainfo01] (item=vim) => {"failed": true, "item": "vim", 
"msg": "one of the following is required: name,list"}
failed: [NESLTR10AJAWA01] (item=ntp) => {"failed": true, "item": "ntp", 
"msg": "one of the following is required: name,list"}
failed: [neslds12ainfo01] (item=ntp) => {"failed": true, "item": "ntp", 
"msg": "one of the following is required: name,list"}

Below are the tasks and handlers main.yml file 

This is tasks main.yml
vi roles/basic/tasks/main.yml

- name: "Installing VIM and NTP"
  yum: name= {{ item }} state=present
  with_items:
  - vim
  - ntp
  when: ansible_distribution != "SLES"
  notify:
  - test  <-----------
==============================================

This is the handler file code 

cat roles/basic/handlers/main.yml
- name: test  <------------
  copy: src=/home/capfin.capgemini.fi/smodak/handtest.txt dst=/tmp/ 
owner=root mode=0777

-- 
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/0a53db5a-9e9e-4618-8ac2-3c4d427b865d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to