update playbook. dont need default version any more
This commit is contained in:
parent
e8b4bf8a3a
commit
59a3f5efaa
@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
debianunattended_debian_version: 13.5.0
|
|
||||||
@ -1,4 +1,16 @@
|
|||||||
---
|
---
|
||||||
|
- name: query current debian release info
|
||||||
|
uri:
|
||||||
|
url: "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/SHA256SUMS"
|
||||||
|
return_content: true
|
||||||
|
delegate_to: localhost
|
||||||
|
run_once: true
|
||||||
|
register: debianunattended_sha256sums
|
||||||
|
|
||||||
|
- name: determine current debian version
|
||||||
|
set_fact:
|
||||||
|
debianunattended_debian_version: "{{ debianunattended_sha256sums.content | regex_search('debian-([0-9]+\\.[0-9]+\\.[0-9]+)-amd64-netinst\\.iso', '\\1') | first }}"
|
||||||
|
|
||||||
- name: check if iso exists
|
- name: check if iso exists
|
||||||
stat:
|
stat:
|
||||||
path: "{{ playbook_dir }}/debian-{{ debianunattended_debian_version }}-amd64-netinst-unattended-{{ inventory_hostname }}.iso"
|
path: "{{ playbook_dir }}/debian-{{ debianunattended_debian_version }}-amd64-netinst-unattended-{{ inventory_hostname }}.iso"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user