Modify proxy only if none given yet.

This commit is contained in:
Andreas B. Mundt 2020-03-17 20:30:23 +01:00
parent c6ac5fec0f
commit a412984c0b
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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