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