hi, 
here is simple example:

wrapper play book
---
- name: Test Wrapper Playbook

  hosts: all
  tasks:

  - name: Storage console
    debug:
      msg: "Test Wrapper Play book"
    tags:
    - always
    
  - name: Precheck Storage Console
    import_playbook: "playbooks/test_playbook.yml"

_____________________________

Test playbook:
---
- name: Test Playbook

  hosts: all
  tasks:

  - name: Storage console
    debug:
      msg: "Test Play book"
    tags:
    - always

_____________________________________

Here is error:

ERROR! this task 'import_playbook' has extra params, which is only allowed 
in the following modules: shell, win_shell, include_vars, add_host, raw, 
include_role, meta, set_fact, include, import_tasks, script, import_role, 
include_tasks, group_by, command, win_command

The error appears to have been in 
'/scratch/xxxx/fr-crosscomponent-role/playbooks/test_wrapper.yml': line 13, 
column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


  - name: Precheck Storage Console
    ^ here

What is wrong?





-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/dccb0e40-65df-4d19-8705-a909223f817c%40googlegroups.com.

Reply via email to