Modify proxy only if none given yet.
This commit is contained in:
		
							parent
							
								
									c6ac5fec0f
								
							
						
					
					
						commit
						a412984c0b
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -19,7 +19,7 @@
 | 
				
			||||||
- name: enable apt-cacher-ng for install-clients
 | 
					- name: enable apt-cacher-ng for install-clients
 | 
				
			||||||
  replace:
 | 
					  replace:
 | 
				
			||||||
    dest: "{{ tftp_root }}/d-i/{{ di_dist }}/preseed.cfg"
 | 
					    dest: "{{ tftp_root }}/d-i/{{ di_dist }}/preseed.cfg"
 | 
				
			||||||
    regexp: '^(d-i mirror/http/proxy string.*)$'
 | 
					    regexp: '^d-i mirror/http/proxy string$'
 | 
				
			||||||
    replace: 'd-i mirror/http/proxy string http://{{ ansible_hostname }}:3142/'
 | 
					    replace: 'd-i mirror/http/proxy string http://{{ ansible_hostname }}:3142/'
 | 
				
			||||||
  when: preseedcfg.stat.exists
 | 
					  when: preseedcfg.stat.exists
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -176,7 +176,7 @@
 | 
				
			||||||
    - HTTP
 | 
					    - HTTP
 | 
				
			||||||
  when: not krb5kdc.stat.exists
 | 
					  when: not krb5kdc.stat.exists
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: add principal to the keytab
 | 
					- name: add principal to the default keytab
 | 
				
			||||||
  command: kadmin.local -q 'ktadd {{ item }}/{{ ansible_hostname }}.{{ ansible_domain }}'
 | 
					  command: kadmin.local -q 'ktadd {{ item }}/{{ ansible_hostname }}.{{ ansible_domain }}'
 | 
				
			||||||
  with_items:
 | 
					  with_items:
 | 
				
			||||||
    - host
 | 
					    - host
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue