8.5 no longer available on mirror
This commit is contained in:
parent
40fe1d7fb5
commit
cfee885b8e
1 changed files with 13 additions and 13 deletions
|
@ -2,15 +2,15 @@
|
|||
|
||||
- name: retrieve install iso
|
||||
get_url:
|
||||
checksum: "sha1:9ea657b3da44bedcfe86369496ba5bde119fdd9a"
|
||||
dest: "{{ vm_path }}/debian-8.5.0-amd64-i386-netinst.iso"
|
||||
checksum: "sha1:23dde0f195170d9fbe99547f9df75838acc95b5e"
|
||||
dest: "{{ vm_path }}/debian-8.6.0-amd64-i386-netinst.iso"
|
||||
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
|
||||
register: download
|
||||
|
||||
- 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
|
||||
delegate_to: 127.0.0.1 # local action
|
||||
register: seeded
|
||||
|
@ -32,7 +32,7 @@
|
|||
*
|
||||
* 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 }}
|
||||
* (WITHOUT stopping this playbook!)
|
||||
* and extract the files amdtxt.cfg and isolinux.cfg
|
||||
|
@ -85,14 +85,14 @@
|
|||
* Likewise copy preseed.cfg from the host-directory {{ vm_path }}
|
||||
* to the iso-directory / .
|
||||
* 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 }} .
|
||||
*
|
||||
*******************************
|
||||
delegate_to: 127.0.0.1 # local action
|
||||
|
||||
- name: wait for emergence of {{ vm_path }}/debian-8.5.0-amd64-i386-{{ inventory_hostname }}.iso
|
||||
wait_for: path={{ 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.6.0-amd64-i386-{{ inventory_hostname }}.iso
|
||||
state=present timeout=900
|
||||
delegate_to: 127.0.0.1 # local action
|
||||
|
||||
|
@ -101,7 +101,7 @@
|
|||
delegate_to: 127.0.0.1 # local action
|
||||
|
||||
- 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
|
||||
|
||||
when: download.changed or not seeded.stat.exists
|
||||
|
@ -109,8 +109,8 @@
|
|||
|
||||
#- name: regenerate seeded copy when downloaded file changed
|
||||
# copy:
|
||||
# src: "{{ vm_path }}/debian-8.5.0-amd64-i386-netinst.iso"
|
||||
# dest: "{{ vm_path }}/debian-8.5.0-amd64-i386-seeded.iso"
|
||||
# src: "{{ vm_path }}/debian-8.6.0-amd64-i386-netinst.iso"
|
||||
# dest: "{{ vm_path }}/debian-8.6.0-amd64-i386-seeded.iso"
|
||||
# force: yes
|
||||
# remote_src: True # though remote equals local ...
|
||||
# when: download.changed
|
||||
|
@ -119,8 +119,8 @@
|
|||
|
||||
#- name: make seeded copy when absent
|
||||
# copy:
|
||||
# src: "{{ vm_path }}/debian-8.5.0-amd64-i386-netinst.iso"
|
||||
# dest: "{{ vm_path }}/debian-8.5.0-amd64-i386-seeded.iso"
|
||||
# src: "{{ vm_path }}/debian-8.6.0-amd64-i386-netinst.iso"
|
||||
# dest: "{{ vm_path }}/debian-8.6.0-amd64-i386-seeded.iso"
|
||||
# force: no
|
||||
# remote_src: True # though remote equals local ...
|
||||
# delegate_to: 127.0.0.1 # local action
|
||||
|
|
Loading…
Reference in a new issue