8.5 no longer available on mirror

This commit is contained in:
kaba 2016-11-22 16:23:01 +01:00
parent 40fe1d7fb5
commit cfee885b8e

View file

@ -2,15 +2,15 @@
- name: retrieve install iso - name: retrieve install iso
get_url: get_url:
checksum: "sha1:9ea657b3da44bedcfe86369496ba5bde119fdd9a" checksum: "sha1:23dde0f195170d9fbe99547f9df75838acc95b5e"
dest: "{{ vm_path }}/debian-8.5.0-amd64-i386-netinst.iso" dest: "{{ vm_path }}/debian-8.6.0-amd64-i386-netinst.iso"
force: no force: no
url: "http://ftp.de.debian.org/debian-cd/8.5.0/multi-arch/iso-cd/debian-8.5.0-amd64-i386-netinst.iso" url: "http://ftp.de.debian.org/debian-cd/8.6.0/multi-arch/iso-cd/debian-8.6.0-amd64-i386-netinst.iso"
delegate_to: 127.0.0.1 # local action delegate_to: 127.0.0.1 # local action
register: download register: download
- name: assert existance of seeded iso - name: assert existance of seeded iso
stat: path={{ vm_path }}/debian-8.5.0-amd64-i386-{{ inventory_hostname }}.iso stat: path={{ vm_path }}/debian-8.6.0-amd64-i386-{{ inventory_hostname }}.iso
get_checksum=False get_md5=False mime=False get_checksum=False get_md5=False mime=False
delegate_to: 127.0.0.1 # local action delegate_to: 127.0.0.1 # local action
register: seeded register: seeded
@ -32,7 +32,7 @@
* *
* MANUAL ACTION NEEDED (step 1) * MANUAL ACTION NEEDED (step 1)
* ----------------------------- * -----------------------------
* Please start isomaster debian-8.5.0-amd64-i386-netinst.iso * Please start isomaster debian-8.6.0-amd64-i386-netinst.iso
* in the host-directory {{ vm_path }} * in the host-directory {{ vm_path }}
* (WITHOUT stopping this playbook!) * (WITHOUT stopping this playbook!)
* and extract the files amdtxt.cfg and isolinux.cfg * and extract the files amdtxt.cfg and isolinux.cfg
@ -85,14 +85,14 @@
* Likewise copy preseed.cfg from the host-directory {{ vm_path }} * Likewise copy preseed.cfg from the host-directory {{ vm_path }}
* to the iso-directory / . * to the iso-directory / .
* Finally save-as this patched iso file * Finally save-as this patched iso file
* to debian-8.5.0-amd64-i386-{{ inventory_hostname }}.iso * to debian-8.6.0-amd64-i386-{{ inventory_hostname }}.iso
* in the host-directory {{ vm_path }} . * in the host-directory {{ vm_path }} .
* *
******************************* *******************************
delegate_to: 127.0.0.1 # local action delegate_to: 127.0.0.1 # local action
- name: wait for emergence of {{ vm_path }}/debian-8.5.0-amd64-i386-{{ inventory_hostname }}.iso - name: wait for emergence of {{ vm_path }}/debian-8.6.0-amd64-i386-{{ inventory_hostname }}.iso
wait_for: path={{ vm_path }}/debian-8.5.0-amd64-i386-{{ inventory_hostname }}.iso wait_for: path={{ vm_path }}/debian-8.6.0-amd64-i386-{{ inventory_hostname }}.iso
state=present timeout=900 state=present timeout=900
delegate_to: 127.0.0.1 # local action delegate_to: 127.0.0.1 # local action
@ -101,7 +101,7 @@
delegate_to: 127.0.0.1 # local action delegate_to: 127.0.0.1 # local action
- name: correct access rights of iso file - name: correct access rights of iso file
file: mode=0644 path={{ vm_path }}/debian-8.5.0-amd64-i386-{{ inventory_hostname }}.iso state=file file: mode=0644 path={{ vm_path }}/debian-8.6.0-amd64-i386-{{ inventory_hostname }}.iso state=file
delegate_to: 127.0.0.1 # local action delegate_to: 127.0.0.1 # local action
when: download.changed or not seeded.stat.exists when: download.changed or not seeded.stat.exists
@ -109,8 +109,8 @@
#- name: regenerate seeded copy when downloaded file changed #- name: regenerate seeded copy when downloaded file changed
# copy: # copy:
# src: "{{ vm_path }}/debian-8.5.0-amd64-i386-netinst.iso" # src: "{{ vm_path }}/debian-8.6.0-amd64-i386-netinst.iso"
# dest: "{{ vm_path }}/debian-8.5.0-amd64-i386-seeded.iso" # dest: "{{ vm_path }}/debian-8.6.0-amd64-i386-seeded.iso"
# force: yes # force: yes
# remote_src: True # though remote equals local ... # remote_src: True # though remote equals local ...
# when: download.changed # when: download.changed
@ -119,8 +119,8 @@
#- name: make seeded copy when absent #- name: make seeded copy when absent
# copy: # copy:
# src: "{{ vm_path }}/debian-8.5.0-amd64-i386-netinst.iso" # src: "{{ vm_path }}/debian-8.6.0-amd64-i386-netinst.iso"
# dest: "{{ vm_path }}/debian-8.5.0-amd64-i386-seeded.iso" # dest: "{{ vm_path }}/debian-8.6.0-amd64-i386-seeded.iso"
# force: no # force: no
# remote_src: True # though remote equals local ... # remote_src: True # though remote equals local ...
# delegate_to: 127.0.0.1 # local action # delegate_to: 127.0.0.1 # local action