start adding software, enable zfs.target during base install
This commit is contained in:
parent
da3e75d489
commit
d1c6350f31
6 changed files with 33 additions and 5 deletions
|
@ -10,7 +10,7 @@
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
|
|
||||||
# - name: install minimal system packages
|
- name: post-install setup
|
||||||
# hosts: base
|
hosts: base
|
||||||
# roles:
|
roles:
|
||||||
# - packages_minimal
|
- software
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
---
|
---
|
||||||
- block:
|
- block:
|
||||||
|
- name: ensure root_password is set
|
||||||
|
assert:
|
||||||
|
that: root_password is defined
|
||||||
|
msg: "please specify a root password via -e root_password=<password>"
|
||||||
- import_tasks: archinstall/mirrorlist.yaml
|
- import_tasks: archinstall/mirrorlist.yaml
|
||||||
- import_tasks: archinstall/partition.yaml
|
- import_tasks: archinstall/partition.yaml
|
||||||
- import_tasks: archinstall/initialize_root_zvol.yaml
|
- import_tasks: archinstall/initialize_root_zvol.yaml
|
||||||
|
@ -8,5 +12,5 @@
|
||||||
- import_tasks: archinstall/prepare_chroot.yaml
|
- import_tasks: archinstall/prepare_chroot.yaml
|
||||||
- import_tasks: archinstall/install_os.yaml
|
- import_tasks: archinstall/install_os.yaml
|
||||||
- import_tasks: archinstall/postinstall_snapshot.yaml
|
- import_tasks: archinstall/postinstall_snapshot.yaml
|
||||||
- meta: end_play
|
- meta: end_play # pull again after reboot to resume provisioning
|
||||||
when: archiso_detected and base_root_disks is defined
|
when: archiso_detected and base_root_disks is defined
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
function set_root_password {
|
||||||
|
echo "{{ root_password }}" | passwd root --stdin
|
||||||
|
}
|
||||||
|
|
||||||
function add_admin_user {
|
function add_admin_user {
|
||||||
username="$1"
|
username="$1"
|
||||||
id -u $username || useradd -m -G wheel $username
|
id -u $username || useradd -m -G wheel $username
|
||||||
|
@ -75,9 +79,14 @@ function configure_dhcp_ethernet {
|
||||||
|
|
||||||
function enable_systemd_services {
|
function enable_systemd_services {
|
||||||
systemctl enable sshd.service
|
systemctl enable sshd.service
|
||||||
|
systemctl enable iwd.service
|
||||||
|
systemctl enable zfs.target
|
||||||
|
systemctl enable zfs-import-cache.service
|
||||||
|
systemctl enable zfs-mount.service
|
||||||
}
|
}
|
||||||
|
|
||||||
# do the stuff
|
# do the stuff
|
||||||
|
set_root_password
|
||||||
add_admin_user mark
|
add_admin_user mark
|
||||||
install_paru_as mark
|
install_paru_as mark
|
||||||
install_zfs_packages_as mark
|
install_zfs_packages_as mark
|
||||||
|
|
2
roles/software/tasks/main.yaml
Normal file
2
roles/software/tasks/main.yaml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
- import_tasks: software_desktop.yaml
|
||||||
|
- import_tasks: software_gfx.yaml
|
8
roles/software/tasks/software_desktop.yaml
Normal file
8
roles/software/tasks/software_desktop.yaml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
- name: install desktop packages
|
||||||
|
package:
|
||||||
|
- bzip2
|
||||||
|
- grim
|
||||||
|
- podman
|
||||||
|
- sway
|
||||||
|
- telegram-desktop
|
||||||
|
|
5
roles/software/tasks/software_gfx.yaml
Normal file
5
roles/software/tasks/software_gfx.yaml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
- name: install graphics packages
|
||||||
|
package:
|
||||||
|
- blender
|
||||||
|
- krita
|
||||||
|
- inkscape
|
Loading…
Add table
Add a link
Reference in a new issue