Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sébastien Luttringer
infrastructure
Commits
eb391730
Commit
eb391730
authored
Mar 19, 2019
by
Sven-Hendrik Haase
Browse files
Initial dragon playbook
parent
16049666
Changes
3
Hide whitespace changes
Inline
Side-by-side
host_vars/dragon.archlinux.org
View file @
eb391730
---
hostname: "dragon"
network_interface: "eth2"
ipv4_address: "195.201.167.210"
ipv4_netmask: "/26"
ipv6_address: "2a01:4f8:13a:102a::2"
...
...
playbooks/dragon.yml
0 → 100644
View file @
eb391730
---
-
name
:
setup dragon
hosts
:
dragon.archlinux.org
remote_user
:
root
roles
:
-
{
role
:
common
,
tags
:
[
'
common'
]
}
-
{
role
:
tools
,
tags
:
[
'
tools'
]
}
-
{
role
:
sshd
,
tags
:
[
'
sshd'
]
}
-
{
role
:
unbound
}
-
{
role
:
root_ssh
,
tags
:
[
'
root_ssh'
]
}
-
{
role
:
archusers
,
tags
:
[
'
archusers'
]
}
-
{
role
:
sudo
,
tags
:
[
'
sudo'
,
'
archusers'
]
}
-
{
role
:
archbuild
,
tags
:
[
'
archbuild'
]
}
roles/install_arch/tasks/main.yml
View file @
eb391730
...
...
@@ -82,8 +82,16 @@
-
name
:
populate pacman keyring inside bootstrap chroot
command
:
chroot /tmp/root.x86_64 pacman-key --populate archlinux
-
name
:
install ucode update for Intel
set_fact
:
ucode="intel-ucode"
when
:
"
'GenuineIntel'
in
ansible_facts['processor']"
-
name
:
install ucode update for AMD
set_fact
:
ucode="amd-ucode"
when
:
"
'AuthenticAMD'
in
ansible_facts['processor']"
-
name
:
install arch base from bootstrap chroot
command
:
chroot /tmp/root.x86_64 pacstrap /mnt base base-devel btrfs-progs grub openssh python creates=/tmp/root.x86_64/mnt/bin
command
:
chroot /tmp/root.x86_64 pacstrap /mnt base base-devel btrfs-progs grub openssh python
{{ ucode }}
creates=/tmp/root.x86_64/mnt/bin
-
name
:
mount /proc to new chroot
command
:
mount --rbind /proc /mnt/proc creates=/mnt/proc/uptime
...
...
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