mirror of
				https://github.com/ansible-collections/community.general.git
				synced 2024-09-14 20:13:21 +02:00 
			
		
		
		
	* Skip self._parent on dynamic, defer to grandparent for attr lookup * Revert _inheritable * Add tests for include inheritance from static blocks Fixes #38037 #36194
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			631 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			631 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
---
 | 
						|
- hosts: testhost
 | 
						|
  gather_facts: false
 | 
						|
  tasks:
 | 
						|
    - debug:
 | 
						|
        var: inventory_hostname
 | 
						|
 | 
						|
    - name: Test included tasks inherit from block
 | 
						|
      check_mode: true
 | 
						|
      block:
 | 
						|
        - include_tasks: grandchild/block_include_tasks.yml
 | 
						|
 | 
						|
    - debug:
 | 
						|
        var: block_include_result
 | 
						|
 | 
						|
    - assert:
 | 
						|
        that:
 | 
						|
          - block_include_result is skipped
 | 
						|
 | 
						|
    - name: Test included tasks inherit deeply from import
 | 
						|
      import_tasks: grandchild/import.yml
 | 
						|
      check_mode: true
 | 
						|
 | 
						|
    - debug:
 | 
						|
        var: import_include_include_result
 | 
						|
 | 
						|
    - assert:
 | 
						|
        that:
 | 
						|
          - import_include_include_result is skipped
 |