Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Dennis Hoppe
infrastructure
Commits
26495529
Commit
26495529
authored
Jul 26, 2020
by
Sven-Hendrik Haase
Browse files
Make install_arch work on packet.net
parent
8a15b07b
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/install_arch/tasks/main.yml
View file @
26495529
...
...
@@ -5,9 +5,13 @@
register
:
motd_contents
changed_when
:
motd_contents.stdout | length >
0
-
name
:
check whether we're running in the Hetzner rescue system
fail
:
msg="Not running in Hetzner rescue system!"
when
:
"
'Hetzner
Rescue'
not
in
motd_contents.stdout"
-
name
:
check whether we're running in Hetzner or Packet.net rescue environment
fail
:
msg="Not running in rescue system!"
when
:
"
'Hetzner
Rescue'
not
in
motd_contents.stdout
and
'Rescue
environment
based
on
Alpine
Linux'
not
in
motd_contents.stdout"
-
name
:
make sure all required packages are installed in the rescue system for installation
apk
:
name=sgdisk,btrfs-progs,tar update_cache=yes
when
:
ansible_facts['os_family'] == "Alpine"
-
name
:
create GRUB embed partitions
command
:
sgdisk -g --clear -n 1:0:+10M {{ item }} -c 1:boot -t 1:ef02
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment