devel (v2) breaks 'action: "{{ ansible_pkg_mgr }}"'

Hey,

could not find any related issue but wanted to get you involved first:
All my roles which deal with installing packages do

1. configure a list with packages to be installed in {{ ansible_os_family }}.yml vars files
2. Install packages with action: "{{ ansible_pkg_mgr }} state=STATE name={{ item }}"

Just installed devel 2.0.0.14307.620fad9 and get this:

    ERROR! this task '{{' has extra params, which is only allowed in the following modules: command, shell, script, include, include_vars, add_host, group_by, set_fact, meta

Here's the task:

    - name: Install Ansible module dependencies
      tags: util
      become: true
      with_flattened:
        - util_package_list_ansible_deps
        - util_package_list_custom
      action: "{{ ansible_pkg_mgr }} state={{ util_package_state }} name={{ item }}"

This would be a huge step back in productivity if this would not work with v2.

File a bug/issue?

# kraM

this is a bug

https://github.com/ansible/ansible/issues/11122

# kraM