Skip to content
Snippets Groups Projects

install_arch: use versionless bootstrap tarball

Merged nl6720 requested to merge nl6720/infrastructure:versionless-bootstrap into master
All threads resolved!
1 file
+ 2
7
Compare changes
  • Side-by-side
  • Inline
@@ -40,20 +40,15 @@
- name: touch LOCK file on mountpoint
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
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-x86_64.tar.gz
dest: /tmp/
mode: 0644
- name: extract boostrap image # noqa 208
unarchive:
src: /tmp/archlinux-bootstrap-{{ bootstrap_version }}-x86_64.tar.gz
src: /tmp/archlinux-bootstrap-x86_64.tar.gz
dest: /tmp
remote_src: true
creates: /tmp/root.x86_64
Loading