On 22.07.2019 12:00, kdt wrote:
Hi,
I wonder if following is a valid syntax for creating a block of tasks

No.


$ cat playbook-some.yml
---
- hosts: all
  vars_files:
       - ./vars_defaults.yml

  tasks:
    block
    - name: Doing measure A
      import_role:
         name: vendor1.measureA
    - name: Doing measure B
      import_role:
         name: vendor1.measureB
    when: do_measures_a_till_b

Question is about the lack of "- name: some description" line before block.

You should read the work in progress documentation Brian Coca is creating since it contain all the answers for you
https://github.com/ansible/ansible/pull/59163/files?short_path=6c7897a#diff-6c7897af459d36548b439591f7542db6

--
Kai Stian Olstad

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9ae8222069d475e8802787926ba7ba1c%40olstad.com.

Reply via email to