mirror of https://github.com/ansible/ansible.git
Allow omit to work with include_role from_args (#74879)
* Allow omit to work with include_role from_args. Fixes #66349 * Add clog fragpull/74905/head
parent
605b1a1c5c
commit
840825b79c
@ -0,0 +1,4 @@
|
||||
minor_changes:
|
||||
- >-
|
||||
``include_role`` - Allow use of ``omit`` in the ``from_*`` arguments
|
||||
(https://github.com/ansible/ansible/issues/66349)
|
||||
@ -0,0 +1,12 @@
|
||||
- hosts: localhost
|
||||
gather_facts: false
|
||||
vars:
|
||||
include_role_omit: false
|
||||
tasks:
|
||||
- include_role:
|
||||
name: foo
|
||||
tasks_from: '{{ omit }}'
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- include_role_omit is sameas(true)
|
||||
@ -0,0 +1,2 @@
|
||||
- set_fact:
|
||||
include_role_omit: true
|
||||
Loading…
Reference in New Issue