mirror of
				https://github.com/ansible-collections/community.general.git
				synced 2024-09-14 20:13:21 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			452 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			452 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
- hosts: all
 | 
						|
  gather_facts: no
 | 
						|
  tasks:
 | 
						|
  - block:
 | 
						|
    - include: include.yml a=1
 | 
						|
      when: 1 == 1
 | 
						|
      notify: foo
 | 
						|
    - include: include.yml a={{item}}
 | 
						|
      with_items:
 | 
						|
      - foo
 | 
						|
      - bar
 | 
						|
      - bam
 | 
						|
    - include: "{{inventory_hostname}}_include.yml"
 | 
						|
    - fail:
 | 
						|
 | 
						|
    rescue:
 | 
						|
    - include: include.yml a=rescue
 | 
						|
 | 
						|
    always:
 | 
						|
    - include: include.yml a=always
 | 
						|
 | 
						|
  #handlers:
 | 
						|
  #- name: foo
 | 
						|
  #  include: include.yml a="this is a handler"
 | 
						|
 |