Verified Commit 1f6cf2df authored by Evangelos Foutras's avatar Evangelos Foutras 🐱
Browse files

install_arch: download the latest bootstrap image

parent d56be49d
...@@ -9,5 +9,5 @@ ...@@ -9,5 +9,5 @@
roles: roles:
- install_arch - install_arch
vars: vars:
- bootstrap_version: "2022.03.01" - bootstrap_version: "latest"
- sshd_enable_includes: false - sshd_enable_includes: false
...@@ -42,6 +42,11 @@ ...@@ -42,6 +42,11 @@
- name: touch LOCK file on mountpoint - name: touch LOCK file on mountpoint
file: path=/mnt/LOCK state=touch owner=root group=root mode=0644 file: path=/mnt/LOCK state=touch owner=root group=root mode=0644
- name: fetch latest bootstrap version
set_fact:
bootstrap_version: "{{ lookup('url', 'https://geo.mirror.pkgbuild.com/iso/latest/arch/version') }}"
when: bootstrap_version == 'latest'
- name: download bootstrap image - name: download bootstrap image
get_url: get_url:
url: https://geo.mirror.pkgbuild.com/iso/{{ bootstrap_version }}/archlinux-bootstrap-{{ bootstrap_version }}-x86_64.tar.gz url: https://geo.mirror.pkgbuild.com/iso/{{ bootstrap_version }}/archlinux-bootstrap-{{ bootstrap_version }}-x86_64.tar.gz
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment