On Wed, Aug 21, 2019 at 1:07 PM Dmitriy Trubov <dima...@gmail.com> wrote:
> 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? > In a yaml file it is usual one of: 1. Indentation does not line up 2. tabs vs spaces (they look the same, but count as different indents) 3. invisible characters (look like blanks or none, but are not understood by the program) I don't see anything, but the mail client could have changed characters. yaml still confuses me. Should "- always" be indented more? -- Bob Harold -- 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/CA%2Bnkc8CCmE2y2Hat16TtsNt-DmmZWua%3D4kvZ4vzLr21L89MspA%40mail.gmail.com.