conditional to make not run every time
This commit is contained in:
		
							parent
							
								
									15fdbafb76
								
							
						
					
					
						commit
						7b877171c3
					
				@ -9,18 +9,18 @@
 | 
			
		||||
  template:
 | 
			
		||||
    src: templates/rbd_secret.xml.j2
 | 
			
		||||
    dest: /tmp/secret.xml
 | 
			
		||||
#  when: virsh_secret_result.rc != 0
 | 
			
		||||
  when: virsh_secret_result is defined and virsh_secret_result.rc != 0
 | 
			
		||||
  ignore_errors: yes
 | 
			
		||||
  tags: libvirt-secret
 | 
			
		||||
 | 
			
		||||
- name: Define libvirt RBD secret
 | 
			
		||||
  command: virsh secret-define /tmp/secret.xml
 | 
			
		||||
#  when: virsh_secret_result.rc != 0
 | 
			
		||||
  when: virsh_secret_result is defined and virsh_secret_result.rc != 0
 | 
			
		||||
  ignore_errors: yes
 | 
			
		||||
  tags: libvirt-secret
 | 
			
		||||
 | 
			
		||||
- name: Set libvirt RBD secret
 | 
			
		||||
  command: virsh secret-set-value {{ rbd_secret_uuid }} {{ rbd_secret_key }}
 | 
			
		||||
#  when: virsh_secret_result.rc != 0
 | 
			
		||||
  when: virsh_secret_result is defined and virsh_secret_result.rc != 0
 | 
			
		||||
  ignore_errors: yes
 | 
			
		||||
  tags: libvirt-secret
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user