Compare commits
4
Commits
8b5a165b34
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
59a3f5efaa | ||
|
|
e8b4bf8a3a | ||
|
|
be3ba1b6ef | ||
|
|
a73806dde2 |
No files matched your search
@@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
debianunattended_debian_version: 13.2.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"
|
||||||
|
|||||||
Reference in new issue
Block a user