Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
6b60c4a9
Verified
Commit
6b60c4a9
authored
Jun 17, 2020
by
Frederik Schwan
Committed by
Sven-Hendrik Haase
Jun 17, 2020
Browse files
fix variable registering for role install_arch
parent
274a3b60
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/install_arch/tasks/main.yml
View file @
6b60c4a9
...
...
@@ -3,7 +3,7 @@
-
name
:
read /etc/motd
command
:
cat /etc/motd
register
:
motd_contents
changed_when
:
cat
.stdout | length >
0
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!"
...
...
@@ -13,12 +13,14 @@
command
:
sgdisk -g --clear -n 1:0:+10M {{ item }} -c 1:boot -t 1:ef02
with_items
:
-
"
{{
system_disks
}}"
register
:
sgdisk
changed_when
:
"
sgdisk.rc
==
0"
-
name
:
create root partitions
command
:
sgdisk -n 2:0:0 {{ item }} -c 2:root
with_items
:
-
"
{{
system_disks
}}"
register
:
sgdisk
changed_when
:
"
sgdisk.rc
==
0"
-
name
:
partition and format the disks (btrfs)
...
...
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